FIR: introduce MANY_*_MEMBER_NOT_IMPLEMENTED diagnostic

This commit is contained in:
Mikhail Glukhikh
2021-03-22 12:58:58 +03:00
parent 9f27362ee1
commit 566dc434cc
19 changed files with 73 additions and 83 deletions
@@ -1,11 +0,0 @@
interface A {
fun f(): String = "string"
}
open class B {
open fun f(): CharSequence = "charSequence"
}
class C : B(), A
val obj: A = object : B(), A {}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
interface A {
fun f(): String = "string"
}
@@ -10,4 +10,4 @@ object Impl : D, E {
override fun foo() {}
}
val obj: D = object : D by Impl, E by Impl {}
val obj: D = <!MANY_INTERFACES_MEMBER_NOT_IMPLEMENTED!>object<!> : D by Impl, E by Impl {}
@@ -1,17 +0,0 @@
package d
interface A {
fun foo() = 1
}
interface B {
fun foo() = 2
}
open class C : A, B {}
interface E {
fun foo(): Int
}
class D : C() {}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
package d
interface A {