Skip to content

Commit f43e98e

Browse files
committed
Emit errors again only under -source future
1 parent a07d9e6 commit f43e98e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/RefChecks.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ object RefChecks {
517517
else
518518
overrideError("cannot have a @targetName annotation since external names would be different")
519519
else if other.is(ParamAccessor) && !isInheritedAccessor(member, other) then // (1.13)
520-
if true || sourceVersion.isAtLeast(`future`) then
520+
if sourceVersion.isAtLeast(`future`) then
521521
overrideError(i"cannot override val parameter ${other.showLocated}")
522522
else
523523
report.deprecationWarning(

0 commit comments

Comments
 (0)