e7e80be34a
Before this commit we considered !isOverride as a sign that function / field / accessor has no overridden symbols. However, it's false for deserialized, because isOverride is always false there. This commit fixes 68 BB tests but breaks 25 BB tests (not yet muted)
21 lines
441 B
Kotlin
Vendored
21 lines
441 B
Kotlin
Vendored
// KJS_WITH_FULL_RUNTIME
|
|
// 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"
|
|
}
|