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.
2 parents 896598a + d7fba01 commit e85a91eCopy full SHA for e85a91e
compiler/src/dotty/tools/dotc/typer/Namer.scala
@@ -1153,7 +1153,7 @@ class Namer { typer: Typer =>
1153
case _ =>
1154
WildcardType
1155
}
1156
- paramFn(typedAheadType(mdef.tpt, tptProto).tpe)
+ paramFn(checkSimpleKinded(typedAheadType(mdef.tpt, tptProto)).tpe)
1157
1158
1159
/** The type signature of a DefDef with given symbol */
tests/neg/i4653.scala
@@ -0,0 +1,14 @@
1
+trait T {
2
+ type S
3
+}
4
+
5
+class C {
6
+ class D[X](val t: T) {
7
+ def bar: t.S = ???
8
+ }
9
10
+ def fooD: D = ??? // error
11
+ fooD.bar
12
13
+ def f(fooV: => D): Any = fooV.bar // error
14
0 commit comments