FIR checker: warn redundant open in interface members properly
This commit is contained in:
committed by
Mikhail Glukhikh
parent
2e8b5f2380
commit
6b5ee6c9f9
@@ -1,16 +0,0 @@
|
||||
// KT-880 Overload resolution ambiguity
|
||||
|
||||
public interface I {
|
||||
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
|
||||
}
|
||||
}
|
||||
@@ -1,3 +1,4 @@
|
||||
// FIR_IDENTICAL
|
||||
// KT-880 Overload resolution ambiguity
|
||||
|
||||
public interface I {
|
||||
|
||||
Reference in New Issue
Block a user