de986ed051
The condition here is obsolete since SAM adapters can no longer be overridden: they are now extensions in another scope #KT-12708 Fixed
14 lines
188 B
Kotlin
Vendored
14 lines
188 B
Kotlin
Vendored
fun box(): String {
|
|
val a: A = B(1)
|
|
a.copy(1)
|
|
a.component1()
|
|
return "OK"
|
|
}
|
|
|
|
interface A {
|
|
fun copy(x: Int): A
|
|
fun component1(): Any
|
|
}
|
|
|
|
data class B(val x: Int) : A
|