[FIR] Add diagnostics for object related problems

This commit is contained in:
Nick
2020-07-30 17:11:15 +03:00
committed by Mikhail Glukhikh
parent 694d3cad4e
commit 26e3a111d6
32 changed files with 419 additions and 77 deletions
+4 -4
View File
@@ -1,14 +1,14 @@
// !DIAGNOSTICS: -UNUSED_VARIABLE
fun foo() {
interface a {}
<!LOCAL_INTERFACE_NOT_ALLOWED!>interface a {}<!>
val b = object {
interface c {}
<!LOCAL_INTERFACE_NOT_ALLOWED!>interface c {}<!>
}
class A {
interface d {}
<!LOCAL_INTERFACE_NOT_ALLOWED!>interface d {}<!>
}
val f = {
interface e {}
<!LOCAL_INTERFACE_NOT_ALLOWED!>interface e {}<!>
}
}