ReadClassDataTest: type variable resolver
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
class ClassParamReferencesParam<A, B : A>
|
||||
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
class ClassParamReferencesParam<A, in B : A>
|
||||
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
class ClassTwoParams<P, Q>
|
||||
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
class ClassTwoParams<out P, Q>
|
||||
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
class ClassParamUsedInFun<in T> {
|
||||
fun f(t: T) = 1
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package test
|
||||
|
||||
class ClassParamUsedInFun<T> {
|
||||
fun f(t: T) = 1
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
fun <P> funParamParam(a: Int, b: P) = 1
|
||||
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
fun <P, Q : P> funParamReferencesParam() = 1
|
||||
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
fun <in P, Q : P> funParamReferencesParam() = 1
|
||||
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
fun <P> funParamVarargParam(a: Int, vararg b: P) = 1
|
||||
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
fun <P, Q> funTwoTypeParams() = 1
|
||||
@@ -0,0 +1,3 @@
|
||||
package test
|
||||
|
||||
fun <P, in Q> funTwoTypeParams() = 1
|
||||
Reference in New Issue
Block a user