Files
kotlin-fork/compiler/testData/diagnostics/tests/override/kt880.kt
T

16 lines
334 B
Kotlin
Vendored

// KT-880 Overload resolution ambiguity
public interface I {
<!REDUNDANT_OPEN_IN_INTERFACE!>open<!> fun test() : Unit
}
abstract public class A() {
open public fun test() : Unit {
}
}
public open class T() : A(), I {
open fun main() : Unit {
test() // Test no "Overload resolution ambiguity" is here
}
}