Skip to content

Commit a07d9e6

Browse files
committed
Fix remaining CB projects
Temporarily, always report an error instead of a deprecation warning to verify that projects compile. This will be reverted in the next commit.
1 parent dd85d57 commit a07d9e6

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
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 sourceVersion.isAtLeast(`future`) then
520+
if true || sourceVersion.isAtLeast(`future`) then
521521
overrideError(i"cannot override val parameter ${other.showLocated}")
522522
else
523523
report.deprecationWarning(

0 commit comments

Comments
 (0)