mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
8 lines
149 B
Kotlin
Vendored
8 lines
149 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
|
|
inline class A(val i: Int) {
|
|
fun foo(s: String = "OK") = s
|
|
}
|
|
|
|
fun box() = A(42).foo() |