Move regression tests from stdlib to compiler
#KT-5770 FIxed
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user