blob: 3815ef128628dfe94197b0bcd48deee69fbe9afc [file]
// WITH_STDLIB
// WORKS_WHEN_VALUE_CLASS
OPTIONAL_JVM_INLINE_ANNOTATION
value class IC(val s: String)
interface IFoo<T> {
fun foo(x: T, s: String = "K"): String
}
class FooImpl : IFoo<IC> {
override fun foo(x: IC, s: String): String = x.s + s
}
fun box(): String = FooImpl().foo(IC("O"))