13 lines
270 B
Kotlin
Vendored
13 lines
270 B
Kotlin
Vendored
// WITH_STDLIB
|
|
// WORKS_WHEN_VALUE_CLASS
|
|
// LANGUAGE: +ValueClasses, +GenericInlineClassParameter
|
|
|
|
OPTIONAL_JVM_INLINE_ANNOTATION
|
|
value class Foo<T: String>(val s: T) {
|
|
fun asResult(): String = s
|
|
}
|
|
|
|
fun box(): String {
|
|
val a = Foo("OK")
|
|
return a.asResult()
|
|
} |