File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -836,13 +836,13 @@ trait Checking {
836836 def isCaseObject (sym : Symbol ): Boolean =
837837 // TODO add alias to Nil in scala package
838838 sym.is(Case ) && sym.is(Module )
839- def isisStaticEnumCase (sym : Symbol ): Boolean =
839+ def isStaticEnumCase (sym : Symbol ): Boolean =
840840 sym.is(Enum ) && sym.is(JavaStatic ) && sym.is(Case )
841841 val allow =
842842 ctx.erasedTypes ||
843843 ctx.inInlineMethod ||
844844 (tree.symbol.isStatic && isCaseObject(tree.symbol) || isCaseClassApply(tree.symbol)) ||
845- isisStaticEnumCase (tree.symbol) ||
845+ isStaticEnumCase (tree.symbol) ||
846846 isCaseClassNew(tree.symbol)
847847
848848 if (! allow) ctx.error(em " $what must be a known value " , tree.sourcePos)
You can’t perform that action at this time.
0 commit comments