Files
kotlin-fork/compiler/testData/codegen/box/inference/subtypingOfIntersectionIltInsideFlexible.kt
T

28 lines
370 B
Kotlin
Vendored

// IGNORE_BACKEND: JS
// IGNORE_BACKEND: JS_IR
// FILE: Bar.java
public class Bar {
public static String bar() {
return null;
}
}
// FILE: main.kt
fun foo(): Any? {
return if (true) {
if (true) {
Bar.bar()
} else {
1
}
} else {
1
}
}
fun box(): String? {
foo()
return "OK"
}