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 1070c7d commit 8e7233fCopy full SHA for 8e7233f
compiler/src/dotty/tools/dotc/tastyreflect/ReflectionCompilerInterface.scala
@@ -1459,12 +1459,12 @@ class ReflectionCompilerInterface(val rootContext: core.Contexts.Context) extend
1459
def Symbol_flags(self: Symbol)(given Context): Flags = self.flags
1460
1461
def Symbol_tree(self: Symbol)(given Context): Tree = {
1462
- assert(!self.is(Case))
+ assert(!self.is(Case, butNot = Enum | Module))
1463
FromSymbol.definitionFromSym(self)
1464
}
1465
1466
def Symbol_pattern(self: Symbol)(given ctx: Context): Pattern = {
1467
- assert(self.is(Case))
+ assert(self.is(Case, butNot = Enum | Module))
1468
1469
1470
0 commit comments