7 lines
119 B
Kotlin
Vendored
7 lines
119 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
|
|
inline class A(val i: Int) {
|
|
fun foo(s: String = "OK") = s
|
|
}
|
|
|
|
fun box() = A(42).foo() |