blob: fb174211c90a8252d80ea886a42e2dfc5b3dc4ff [file]
// WITH_STDLIB
// WORKS_WHEN_VALUE_CLASS
interface IFoo {
fun foo(): String
}
OPTIONAL_JVM_INLINE_ANNOTATION
value class IC<T: String>(val x: T) : IFoo {
private fun privateFun() = x
override fun foo() = privateFun()
}
fun box(): String {
val x: IFoo = IC("OK")
return x.foo()
}