mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
18 lines
442 B
Kotlin
Vendored
18 lines
442 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)
|
|
}
|
|
}
|
|
|
|
// 2 INVOKESTATIC Foo\$Erased.empty \(I\)V
|
|
// 2 INVOKESTATIC Foo\$Erased.withParam \(ILjava/lang/String;\)V
|
|
// 2 INVOKESTATIC Foo\$Erased.withInlineClassParam \(II\)V
|
|
// 0 INVOKEVIRTUAL |