Files
kotlin-fork/compiler/testData/codegen/box/inlineClasses/emptyConstructorForInlineClass.kt
T
2021-10-11 12:09:52 +03:00

12 lines
234 B
Kotlin
Vendored

// WITH_RUNTIME
@Suppress("OPTIONAL_DECLARATION_USAGE_IN_NON_COMMON_SOURCE")
@kotlin.jvm.JvmInline
value class Foo(val s: String) {
fun asResult(): String = s
}
fun box(): String {
val a = Foo("OK")
return a.asResult()
}