Skip to content

Commit 67fa551

Browse files
committed
avoid "effectively final" terminology in error message
1 parent 25b6f5f commit 67fa551

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/reporting/messages.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3433,7 +3433,7 @@ extends DeclarationMsg(IllegalUnrollPlacementID):
34333433
if method.isLocal then
34343434
i"$prefix because it is a local method"
34353435
else if !method.isEffectivelyFinal then
3436-
i"$prefix: it is not effectively final"
3436+
i"$prefix because it can be overridden"
34373437
else if isCtor && method.owner.is(Trait) then
34383438
i"implementation restriction: $prefix"
34393439
else if method.owner.companionClass.is(CaseClass) then

0 commit comments

Comments
 (0)