f318b5969d
Substitution of type arguments to non-reified type parameters may lead to accidental reification, which should not be done (see ^KT-60174 for examples). So, we should erase them, except the few cases. ^KT-60174: Fixed ^KT-60175: Fixed
39 lines
610 B
Kotlin
Vendored
39 lines
610 B
Kotlin
Vendored
|
|
// FILE: test.kt
|
|
|
|
fun box() {
|
|
foo()
|
|
bar()
|
|
}
|
|
|
|
fun foo(i: Int = 1) {
|
|
}
|
|
|
|
inline fun bar(i: Int = 1) {
|
|
}
|
|
|
|
// FORCE_STEP_INTO
|
|
// EXPECTATIONS JVM_IR
|
|
// test.kt:5 box
|
|
// test.kt:9 foo$default (synthetic)
|
|
// test.kt:10 foo
|
|
// test.kt:9 foo$default (synthetic)
|
|
// test.kt:6 box
|
|
// test.kt:12 box
|
|
// test.kt:13 box
|
|
// test.kt:7 box
|
|
|
|
// EXPECTATIONS JS_IR
|
|
// test.kt:5 box
|
|
// test.kt:10 foo
|
|
// test.kt:7 box
|
|
|
|
// EXPECTATIONS WASM
|
|
// test.kt:1 $box
|
|
// test.kt:5 $box (4, 4, 4, 4)
|
|
// test.kt:9 $foo$default (0, 17, 17, 17, 17, 0)
|
|
// test.kt:10 $foo
|
|
// test.kt:6 $box
|
|
// test.kt:12 $box (24, 24)
|
|
// test.kt:7 $box
|