Skip to content

Commit 0a824b7

Browse files
committed
Move isType first (for performance guess?)
1 parent 981b309 commit 0a824b7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ object SymDenotations {
600600

601601
/** Is this a denotation of a stable term (or an arbitrary type)? */
602602
final def isStable(implicit ctx: Context) =
603-
!is(Ghost) && (isType || is(Stable) || !(is(UnstableValue) || info.isInstanceOf[ExprType]))
603+
isType || !is(Ghost) && (is(Stable) || !(is(UnstableValue) || info.isInstanceOf[ExprType]))
604604

605605
/** Is this a "real" method? A real method is a method which is:
606606
* - not an accessor

0 commit comments

Comments
 (0)