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 97927ac commit ecc8ba3Copy full SHA for ecc8ba3
compiler/src/dotty/tools/dotc/core/SymUtils.scala
@@ -313,7 +313,7 @@ class SymUtils:
313
}
314
315
def isField(using Context): Boolean =
316
- self.isTerm && !self.is(Method)
+ self.isTerm && !self.isOneOf(Method | PhantomSymbol | NonMember)
317
318
def isEnumCase(using Context): Boolean =
319
self.isAllOf(EnumCase, butNot = JavaDefined)
0 commit comments