We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b3ef04f + 3f25f89 commit 6a6dd7bCopy full SHA for 6a6dd7b
compiler/src/dotty/tools/dotc/core/Types.scala
@@ -3876,6 +3876,8 @@ object Types {
3876
x.declaredVariance == y.declaredVariance))
3877
&& {
3878
val bs1 = new BinderPairs(this, that, bs)
3879
+ // `paramInfos` and `resType` might still be uninstantiated at this point
3880
+ paramInfos != null && resType != null &&
3881
paramInfos.equalElements(that.paramInfos, bs1) &&
3882
resType.equals(that.resType, bs1)
3883
}
tests/neg/i13513.scala
@@ -0,0 +1,5 @@
1
+final case class TwoTypes[F, A](value: A)
2
+class Minimal {
3
+ def x[C[_]]: C[Int] = ???
4
+ x[TwoTypes].value // error: Type argument TwoTypes does not conform to upper bound [_] =>> Any
5
+}
0 commit comments