Two tests fixed

This commit is contained in:
Andrey Breslav
2011-09-05 19:58:59 +04:00
parent bca24cf39c
commit 2e45307082
3 changed files with 18 additions and 11 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
package variance
namespace variance
abstract class Consumer<in T> {}
@@ -32,9 +32,9 @@ fun <T> copy3(from : Array<out T>, to : Array<in T>) {}
fun copy4(from : Array<out Number>, to : Array<in Int>) {}
fun f(ints: Array<Int>, any: Array<Any>, numbers: Array<Number>) {
copy1<error>(ints, any)</error>
copy1(<error>ints</error>, any)
copy2(ints, any) //ok
copy2<error>(ints, numbers)</error>
copy2(ints, <error>numbers</error>)
copy3<Int>(ints, numbers)
copy4(ints, numbers) //ok
}