18 lines
432 B
Kotlin
18 lines
432 B
Kotlin
package regressions
|
|
|
|
import junit.framework.TestCase
|
|
import java.util.List
|
|
import kotlin.util.arrayList
|
|
|
|
class Kt1619Test: TestCase() {
|
|
|
|
fun doSomething(list: List<String?>): Boolean {
|
|
return list.size() > 0
|
|
}
|
|
|
|
fun testCollectionNotNullCanBeUsedForNullables() {
|
|
val list: List<String> = arrayList("foo", "bar")
|
|
// TODO uncomment this line to reproduce KT-1619
|
|
// doSomething(list)
|
|
}
|
|
} |