We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a07d9e6 commit f43e98eCopy full SHA for f43e98e
compiler/src/dotty/tools/dotc/typer/RefChecks.scala
@@ -517,7 +517,7 @@ object RefChecks {
517
else
518
overrideError("cannot have a @targetName annotation since external names would be different")
519
else if other.is(ParamAccessor) && !isInheritedAccessor(member, other) then // (1.13)
520
- if true || sourceVersion.isAtLeast(`future`) then
+ if sourceVersion.isAtLeast(`future`) then
521
overrideError(i"cannot override val parameter ${other.showLocated}")
522
523
report.deprecationWarning(
0 commit comments