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 a4ef09a commit 9c712dfCopy full SHA for 9c712df
compiler/src/dotty/tools/dotc/typer/Inferencing.scala
@@ -102,7 +102,7 @@ object Inferencing {
102
case AppliedType(tycon, args) =>
103
// The argument in `args` that may potentially appear directly as result
104
// and thereby influence the members of this type
105
- def argsInResult: List[Type] = tycon match
+ def argsInResult: List[Type] = tycon.stripTypeVar match
106
case tycon: TypeRef =>
107
tycon.info match
108
case MatchAlias(_) => args
@@ -114,6 +114,7 @@ object Inferencing {
114
}.toList
115
case _ => Nil
116
117
+ case _ => Nil
118
couldInstantiateTypeVar(tycon)
119
|| argsInResult.exists(couldInstantiateTypeVar)
120
case RefinedType(parent, _, _) =>
0 commit comments