[FIR] Add diagnostics for object related problems
This commit is contained in:
@@ -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 {}<!>
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user