Merge remote branch 'origin/master'

This commit is contained in:
Andrey Breslav
2011-12-27 21:29:48 +04:00
51 changed files with 283 additions and 162 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