363b25504d
Since many labels are not present in the FIR tree, this checker is implemented as a syntax checker. Comparing with FE1.0, this change reports some REDUNDANT_LABEL_WARNING that FE1.0 has missed, especially LHS of assignments.
13 lines
173 B
Kotlin
Vendored
13 lines
173 B
Kotlin
Vendored
// !DIAGNOSTICS: -UNUSED_PARAMETER
|
|
|
|
annotation class ann
|
|
val bas = fun ()
|
|
|
|
fun bar(a: Any) = fun ()
|
|
|
|
fun outer() {
|
|
bar(fun ())
|
|
bar(l@ fun ())
|
|
bar(@ann fun ())
|
|
}
|