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 944f540 commit 16b8e07Copy full SHA for 16b8e07
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -594,7 +594,7 @@ object Types {
594
try
595
this match
596
case tp: TypeProxy =>
597
- tp.underlying.baseClasses
+ tp.superType.baseClasses
598
case tp: ClassInfo =>
599
tp.cls.classDenot.baseClasses
600
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