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)
25 lines
417 B
Kotlin
Vendored
25 lines
417 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
// WITH_RUNTIME
|
|
// !LANGUAGE: +NewInference
|
|
|
|
val stack = mutableListOf<Int>()
|
|
|
|
fun <E> MutableList<E>.pop() = this.removeAt(size - 1)
|
|
|
|
fun foo() {}
|
|
|
|
fun getBoolean(): Boolean = true
|
|
|
|
fun box(): String {
|
|
val b = getBoolean()
|
|
if (b) {
|
|
stack.add(1)
|
|
try {
|
|
return "OK"
|
|
} finally {
|
|
stack.pop()
|
|
}
|
|
} else {
|
|
return "OK"
|
|
}
|
|
} |