addb048ce9
This is to align the behavior with K1. ^KT-57754 Fixed Co-authored-by: Alexander Udalov <alexander.udalov@jetbrains.com>
21 lines
312 B
Kotlin
Vendored
21 lines
312 B
Kotlin
Vendored
// TARGET_BACKEND: JVM
|
|
|
|
// FILE: Foo.java
|
|
|
|
import java.util.Set;
|
|
|
|
public class Foo {
|
|
public interface A extends Set<String> {}
|
|
|
|
public interface B extends Set<String> {}
|
|
}
|
|
|
|
// FILE: DelegationAndInheritanceFromJava.kt
|
|
|
|
import Foo.*
|
|
import java.util.HashSet
|
|
|
|
class Impl(b: B): A, B by b
|
|
|
|
fun box() = "OK"
|