Files
kotlin-fork/compiler/testData/codegen/box/inference/subtypingOfIntersectionIltInsideFlexible.kt
T
2020-11-09 16:04:43 +03:00

29 lines
416 B
Kotlin
Vendored

// DONT_TARGET_EXACT_BACKEND: WASM
// WASM_MUTE_REASON: IGNORED_IN_JS
// TARGET_BACKEND: JVM
// 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"
}