Move regression tests from stdlib to compiler

#KT-5770 FIxed
This commit is contained in:
Natalia Ukhorskaya
2014-09-12 14:00:36 +04:00
parent d5f509580f
commit 655682ac97
11 changed files with 111 additions and 109 deletions
@@ -0,0 +1,18 @@
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"
}