mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 08:31:29 +00:00
- [JS IR] Unmute fixed tests - [IrText] Update testdata - [WASM] Temporary turn wasm test off - [FirText] Temporary turn fit text tests off - [JVM IR] Turn off klib jvm test - [IR] Add new test
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"
|
|
} |