ReadClassDataTest: type variable resolver

This commit is contained in:
Stepan Koltsov
2011-12-27 20:46:43 +04:00
parent 0d5283d0a8
commit 617b3b5db5
19 changed files with 208 additions and 34 deletions
@@ -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