Skip to content

Commit 8e7233f

Browse files
committed
Add missing falgs in assertion
1 parent 1070c7d commit 8e7233f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/tastyreflect/ReflectionCompilerInterface.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1459,12 +1459,12 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
14591459
def Symbol_flags(self: Symbol)(given Context): Flags = self.flags
14601460

14611461
def Symbol_tree(self: Symbol)(given Context): Tree = {
1462-
assert(!self.is(Case))
1462+
assert(!self.is(Case, butNot = Enum | Module))
14631463
FromSymbol.definitionFromSym(self)
14641464
}
14651465

14661466
def Symbol_pattern(self: Symbol)(given ctx: Context): Pattern = {
1467-
assert(self.is(Case))
1467+
assert(self.is(Case, butNot = Enum | Module))
14681468
FromSymbol.definitionFromSym(self)
14691469
}
14701470

0 commit comments

Comments
 (0)