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.
2 parents 9b648dc + 16b8e07 commit ad1939aCopy full SHA for ad1939a
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -595,7 +595,7 @@ object Types {
595
try
596
this match
597
case tp: TypeProxy =>
598
- tp.underlying.baseClasses
+ tp.superType.baseClasses
599
case tp: ClassInfo =>
600
tp.cls.classDenot.baseClasses
601
case _ => Nil
tests/pos/i15405.scala
@@ -0,0 +1,4 @@
1
+type Validated[A] = A
2
+class Foo:
3
+ def >(x: Int) = true
4
+def foo(v: Foo|Validated[Foo]): Unit = v > 10
0 commit comments