Skip to content

Commit 6aa176c

Browse files
tudorv91bishabosha
andauthored
Update compiler/src/dotty/tools/dotc/ast/Desugar.scala
Co-authored-by: Jamie Thompson <bishbashboshjt@gmail.com>
1 parent 305e5b7 commit 6aa176c

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
@@ -937,7 +937,7 @@ object desugar {
937937
}
938938
mdef match {
939939
case vdef: ValDef if name.isExtension && vdef.mods.is(Mutable) =>
940-
report.error(em"illegal variable name: `extension`", errPos)
940+
report.error(em"illegal setter name: `extension_=`", errPos)
941941
case memDef if name.isExtensionName && !mdef.mods.is(ExtensionMethod) =>
942942
report.error(em"illegal name: $name may not start with `extension_`", errPos)
943943
case _ =>

0 commit comments

Comments
 (0)