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 8737254 commit 0cdbff1Copy full SHA for 0cdbff1
compiler/src/dotty/tools/dotc/typer/ProtoTypes.scala
@@ -707,8 +707,10 @@ object ProtoTypes {
707
if wildcardOnly
708
|| ctx.mode.is(Mode.TypevarsMissContext)
709
|| !ref.underlying.widenExpr.isValueTypeOrWildcard
710
- then WildcardType
711
- else newDepTypeVar(ref)
+ then
+ WildcardType(ref.underlying.substParams(mt, mt.paramRefs.map(_ => WildcardType)).toBounds)
712
+ else
713
+ newDepTypeVar(ref)
714
mt.resultType.substParams(mt, mt.paramRefs.map(replacement))
715
else mt.resultType
716
0 commit comments