Skip to content

Commit ee17fc8

Browse files
committed
Change Symbol.exists to not use denot
1 parent 87a7430 commit ee17fc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/Symbols.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ object Symbols {
369369
else
370370
_self
371371

372-
def exists(using Context): Boolean = _self.denot.exists
372+
def exists(using Context): Boolean = _self ne NoSymbol
373373
def owner(using Context): Symbol = _self.denot.owner
374374
def typeParams(using Context): List[TypeSymbol] = _self.denot.typeParams
375375
def thisType(using Context): Type = _self.denot.thisType

0 commit comments

Comments
 (0)