mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
17 lines
307 B
Kotlin
Vendored
17 lines
307 B
Kotlin
Vendored
// !LANGUAGE: +InlineClasses
|
|
// IGNORE_BACKEND_FIR: JVM_IR
|
|
// WITH_RUNTIME
|
|
import kotlin.test.*
|
|
|
|
inline class S(val string: String)
|
|
|
|
fun foo(s: S) = s
|
|
|
|
fun box(): String {
|
|
val fooRef = ::foo
|
|
|
|
assertEquals("abc", fooRef.invoke(S("abc")).string)
|
|
assertEquals("foo", fooRef.name)
|
|
|
|
return "OK"
|
|
} |