Merge boxWithStdlib testData into box, delete BoxWithStdlib test

This commit is contained in:
Alexander Udalov
2016-03-07 13:36:14 +03:00
committed by Alexander Udalov
parent 22bfc9786a
commit 06a67e6602
535 changed files with 3520 additions and 3871 deletions
+19
View File
@@ -0,0 +1,19 @@
// WITH_RUNTIME
package regressions
class Kt1619Test {
fun doSomething(list: List<String?>): Int {
return list.size
}
fun testCollectionNotNullCanBeUsedForNullables(): Int {
val list: List<String> = arrayListOf("foo", "bar")
return doSomething(list)
}
}
fun box(): String {
return if (Kt1619Test().testCollectionNotNullCanBeUsedForNullables() == 2) "OK" else "fail"
}