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 bc8aba2 + 725c425 commit e768883Copy full SHA for e768883
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -657,6 +657,8 @@ object Types extends TypeUtils {
657
tp.superType.baseClasses
658
case tp: ClassInfo =>
659
tp.cls.classDenot.baseClasses
660
+ case tp: WildcardType =>
661
+ tp.effectiveBounds.hi.baseClasses
662
case _ => Nil
663
catch case ex: Throwable =>
664
handleRecursive("base classes of", this.show, ex)
tests/pos/i19460.scala
@@ -0,0 +1,5 @@
1
+type T[A] = A | Any
2
+
3
+def perform[A](using T[A]): A = perform2
4
5
+def perform2[A](using T[A]): A = ???
0 commit comments