14 lines
258 B
Kotlin
Vendored
14 lines
258 B
Kotlin
Vendored
// WITH_STDLIB
|
|
// WORKS_WHEN_VALUE_CLASS
|
|
// LANGUAGE: +ValueClasses
|
|
|
|
OPTIONAL_JVM_INLINE_ANNOTATION
|
|
value class Foo<T>(val x: Int)
|
|
|
|
class Bar(val y: Foo<Any>)
|
|
|
|
fun box(): String {
|
|
if (Bar(Foo<Any>(42)).y.x != 42) throw AssertionError()
|
|
|
|
return "OK"
|
|
} |