FIR checker: warn redundant open in interface members properly

This commit is contained in:
Jinseong Jeon
2021-01-14 13:29:36 -08:00
committed by Mikhail Glukhikh
parent 2e8b5f2380
commit 6b5ee6c9f9
9 changed files with 47 additions and 44 deletions
@@ -1,10 +1,10 @@
// !DIAGNOSTICS: -CONFLICTING_JVM_DECLARATIONS
interface One {
public open fun foo() : Int
public <!REDUNDANT_OPEN_IN_INTERFACE!>open<!> fun foo() : Int
private fun boo() = 10
}
interface Two {
public open fun foo() : Int
public <!REDUNDANT_OPEN_IN_INTERFACE!>open<!> fun foo() : Int
}
interface OneImpl : One {