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