Skip to content

Commit 8d931b8

Browse files
committed
Fix #9736: Dealias in unrelated check
1 parent 6f24431 commit 8d931b8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/TypeTestsCasts.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ object TypeTestsCasts {
185185
else if tp.isRef(defn.AnyValClass) then defn.AnyClass
186186
else tp.classSymbol
187187

188-
def foundClasses(tp: Type, acc: List[Symbol]): List[Symbol] = tp match
188+
def foundClasses(tp: Type, acc: List[Symbol]): List[Symbol] = tp.dealias match
189189
case OrType(tp1, tp2) => foundClasses(tp2, foundClasses(tp1, acc))
190190
case _ => effectiveClass(tp) :: acc
191191

0 commit comments

Comments
 (0)