mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
18 lines
347 B
Kotlin
Vendored
18 lines
347 B
Kotlin
Vendored
// DONT_TARGET_EXACT_BACKEND: WASM
|
|
// WASM_MUTE_REASON: BRIDGE_ISSUES
|
|
// !LANGUAGE: +InlineClasses
|
|
// 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"
|
|
} |