Files
kotlin-fork/compiler/testData/debug/stepping/whenIsChecks.kt
T
Alexander Korepanov 6556acabba [JS FIR] Enable FIR JS stepping tests
^KT-64422 Fixed
2024-01-08 12:38:37 +00:00

75 lines
1.2 KiB
Kotlin
Vendored

// FILE: test.kt
fun foo(x: Any) {
when (x) {
is Float ->
1
is Double ->
2
else ->
3
}
}
fun box() {
foo(1.2f)
foo(1.2)
foo(1)
}
// EXPECTATIONS JVM_IR
// test.kt:16 box
// test.kt:5 foo
// test.kt:6 foo
// test.kt:7 foo
// test.kt:13 foo
// test.kt:17 box
// test.kt:5 foo
// test.kt:6 foo
// test.kt:8 foo
// test.kt:9 foo
// test.kt:13 foo
// test.kt:18 box
// test.kt:5 foo
// test.kt:6 foo
// test.kt:8 foo
// test.kt:11 foo
// test.kt:13 foo
// test.kt:19 box
// EXPECTATIONS JS_IR
// test.kt:16 box
// EXPECTATIONS FIR JS_IR
// test.kt:6 foo
// test.kt:7 foo
// test.kt:9 foo
// EXPECTATIONS JS_IR
// test.kt:13 foo
// test.kt:17 box
// EXPECTATIONS FIR JS_IR
// test.kt:6 foo
// test.kt:7 foo
// test.kt:9 foo
// EXPECTATIONS JS_IR
// test.kt:13 foo
// test.kt:18 box
// EXPECTATIONS FIR JS_IR
// test.kt:6 foo
// test.kt:7 foo
// test.kt:9 foo
// EXPECTATIONS JS_IR
// test.kt:13 foo
// test.kt:19 box
// EXPECTATIONS WASM
// test.kt:1 $box
// test.kt:16 $box (8, 8, 8, 8, 4)
// test.kt:5 $foo (10, 10, 10)
// test.kt:6 $foo (8, 8, 8)
// test.kt:13 $foo (1, 1, 1)
// test.kt:17 $box (8, 8, 8, 8, 4)
// test.kt:8 $foo (8, 8)
// test.kt:18 $box (8, 8, 8, 8, 4)
// test.kt:19 $box