Files
kotlin/compiler/testData/codegen/bytecodeText/inlineClasses/callMemberMethodsInsideInlineClass.kt
Dmitry Petrov 80a67477db Generate method calls for inline classes through IC, not IC$Erased
IC extends IC$Erased, so it should be fine.
2018-09-05 12:20:57 +03:00

18 lines
430 B
Kotlin
Vendored

// !LANGUAGE: +InlineClasses
inline class Foo(val x: Int) {
fun empty() {}
fun withParam(a: String) {}
fun withInlineClassParam(f: Foo) {}
fun test() {
empty()
withParam("hello")
withInlineClassParam(this)
}
}
// 1 INVOKESTATIC Foo\.empty \(I\)V
// 1 INVOKESTATIC Foo\.withParam \(ILjava/lang/String;\)V
// 1 INVOKESTATIC Foo\.withInlineClassParam-1e4ch6lh \(II\)V
// 5 INVOKEVIRTUAL