0d19942d2c
It would be nice to report more appropriate diagnostics at the corresponding places, but right now it's more important to fix greenness-redness problems. Plus, this is already how K1 works. ^KT-59900 Fixed
15 lines
350 B
Kotlin
Vendored
15 lines
350 B
Kotlin
Vendored
// FIR_IDENTICAL
|
|
// !DIAGNOSTICS: -UNUSED_VARIABLE
|
|
|
|
fun foo() {
|
|
<!LOCAL_INTERFACE_NOT_ALLOWED!>interface a<!> {}
|
|
val b = object {
|
|
<!NESTED_CLASS_NOT_ALLOWED!>interface c<!> {}
|
|
}
|
|
class A {
|
|
<!NESTED_CLASS_NOT_ALLOWED!>interface d<!> {}
|
|
}
|
|
val f = {
|
|
<!LOCAL_INTERFACE_NOT_ALLOWED!>interface e<!> {}
|
|
}
|
|
} |