Files
kotlin-fork/compiler/testData/codegen/box/size/removeUnusedOverride.kt
T
Ilya Goncharov abb5f55087 [Wasm] Use static import for wasm imports
^KT-65777 fixed
2024-02-19 10:01:10 +00:00

24 lines
400 B
Kotlin
Vendored

// TARGET_BACKEND: JS_IR
// TARGET_BACKEND: WASM
// RUN_THIRD_PARTY_OPTIMIZER
// WASM_DCE_EXPECTED_OUTPUT_SIZE: wasm 13_321
// WASM_DCE_EXPECTED_OUTPUT_SIZE: mjs 4_787
// WASM_OPT_EXPECTED_OUTPUT_SIZE: 3_900
interface I {
fun foo() = "OK"
}
abstract class A : I
class B : A()
class C : A() {
override fun foo(): String {
return "C::foo"
}
}
fun box() = B().foo()