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 {
184
184
)
185
185
}
186
186
else {
187
+ hkarg.initialize // SI-7902 otherwise hkarg.typeParams yields List(NoSymbol)!
187
188
debuglog(" checkKindBoundsHK recursing to compare params of " + hkparam + " with " + hkarg)
188
189
kindErrors ++= checkKindBoundsHK(
189
190
hkarg.typeParams,
@@ -229,4 +230,4 @@ trait Kinds {
229
230
}
230
231
}
231
232
}
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