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 {
836
836
def isCaseObject (sym : Symbol ): Boolean =
837
837
// TODO add alias to Nil in scala package
838
838
sym.is(Case ) && sym.is(Module )
839
- def isisStaticEnumCase (sym : Symbol ): Boolean =
839
+ def isStaticEnumCase (sym : Symbol ): Boolean =
840
840
sym.is(Enum ) && sym.is(JavaStatic ) && sym.is(Case )
841
841
val allow =
842
842
ctx.erasedTypes ||
843
843
ctx.inInlineMethod ||
844
844
(tree.symbol.isStatic && isCaseObject(tree.symbol) || isCaseClassApply(tree.symbol)) ||
845
- isisStaticEnumCase (tree.symbol) ||
845
+ isStaticEnumCase (tree.symbol) ||
846
846
isCaseClassNew(tree.symbol)
847
847
848
848
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