Files
kotlin-fork/compiler/testData/diagnostics/tests/labels/labeledFunctionLiteral.fir.kt
T
pyos 82cadba80b FIR: report errors on FirResolvedTypeRef with ConeClassErrorType
Not sure what the difference from FirErrorTypeRef is.
2021-04-15 14:59:30 +03:00

17 lines
411 B
Kotlin
Vendored

// !DIAGNOSTICS: -UNUSED_VARIABLE
val funLit = lambda@ fun String.() {
val d1 = <!UNRESOLVED_LABEL!>this@lambda<!>
}
fun test() {
val funLit = lambda@ fun String.(): <!UNRESOLVED_LABEL!>String<!> {
return <!UNRESOLVED_LABEL!>this@lambda<!>
}
}
fun lambda() {
val funLit = lambda@ fun String.(): <!UNRESOLVED_LABEL!>String<!> {
return <!UNRESOLVED_LABEL!>this@lambda<!>
}
}