Files
kotlin-fork/compiler/testData/codegen/box/size/removeUnusedOverride.kt
T
2023-12-21 14:19:09 +00:00

23 lines
345 B
Kotlin
Vendored

// TARGET_BACKEND: JS_IR
// TARGET_BACKEND: WASM
// RUN_THIRD_PARTY_OPTIMIZER
// WASM_DCE_EXPECTED_OUTPUT_SIZE: wasm 13_109
// 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()