Files
kotlin-fork/compiler/testData/diagnostics/tests/functionAsExpression/WithoutBody.fir.kt
T
Tianyu Geng 363b25504d FIR checker: report REDUNDANT_LABEL_WARNING
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.
2021-10-25 13:51:01 +03:00

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 ())
}