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 4cf3a1a commit 4800aecCopy full SHA for 4800aec
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -834,9 +834,9 @@ class Typer extends Namer
834
case _ => untpd.TypeTree(tp)
835
}
836
def interpolateWildcards = new TypeMap {
837
- def apply(t: Type) = t match
838
- case WildcardType => newTypeVar(TypeBounds.empty)
839
- case WildcardType(bounds: TypeBounds) => newTypeVar(bounds)
+ def apply(t: Type): Type = t match
+ case WildcardType(bounds: TypeBounds) =>
+ newTypeVar(apply(bounds.orElse(TypeBounds.empty)).bounds)
840
case _ => mapOver(t)
841
842
pt.stripTypeVar.dealias match {
0 commit comments