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 e8ea6e9 commit f07d9caCopy full SHA for f07d9ca
compiler/src/dotty/tools/dotc/typer/Checking.scala
@@ -830,7 +830,9 @@ trait Checking {
830
case _: ValDef | _: TypeDef => stat.symbol.is(Case)
831
case _ => false
832
}
833
- val cases = for (stat <- impl.body if isCase(stat)) yield untpd.Ident(stat.symbol.name)
+ val cases =
834
+ for (stat <- impl.body if isCase(stat))
835
+ yield untpd.Ident(stat.symbol.name.toTermName)
836
val caseImport: Import = Import(ref(cdef.symbol), cases)
837
val caseCtx = enumCtx.importContext(caseImport, caseImport.symbol)
838
for (stat <- impl.body) checkCaseOrDefault(stat, caseCtx)
0 commit comments