File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed
src/reflect/scala/reflect/internal Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -184,6 +184,7 @@ trait Kinds {
184184 )
185185 }
186186 else {
187+ hkarg.initialize // SI-7902 otherwise hkarg.typeParams yields List(NoSymbol)!
187188 debuglog(" checkKindBoundsHK recursing to compare params of " + hkparam + " with " + hkarg)
188189 kindErrors ++= checkKindBoundsHK(
189190 hkarg.typeParams,
@@ -229,4 +230,4 @@ trait Kinds {
229230 }
230231 }
231232 }
232- }
233+ }
Original file line number Diff line number Diff line change 1+ import scala .language .higherKinds
2+
3+ object Bug {
4+ class Tag [W [M1 [X1 ]]]
5+
6+ def ofType [W [M2 [X2 ]]]: Tag [W ] = ???
7+ type InSeq [M3 [X3 ]] = Some [M3 [Any ]]
8+
9+ // fail
10+ val x = ofType[InSeq ]
11+
12+ // okay
13+ val y : Any = ofType[InSeq ]
14+ object T {
15+ val z = ofType[InSeq ]
16+ }
17+ }
You can’t perform that action at this time.
0 commit comments