Skip to content

Commit a17b774

Browse files
tudorv91bishabosha
andcommitted
Update compiler/src/dotty/tools/dotc/ast/Desugar.scala
Co-authored-by: Jamie Thompson <[email protected]>
1 parent 5402b85 commit a17b774

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/ast/Desugar.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -938,7 +938,7 @@ object desugar {
938938
}
939939
mdef match {
940940
case vdef: ValDef if name.isExtension && vdef.mods.is(Mutable) =>
941-
report.error(em"illegal variable name: `extension`", errPos)
941+
report.error(em"illegal setter name: `extension_=`", errPos)
942942
case memDef if name.isExtensionName && !mdef.mods.is(ExtensionMethod) =>
943943
report.error(em"illegal name: $name may not start with `extension_`", errPos)
944944
case _ =>

0 commit comments

Comments
 (0)