Files
kotlin-fork/compiler/testData/diagnostics/tests/declarationChecks/destructuringDeclarations/ForLoopMissingLoopParameter.kt
T

16 lines
285 B
Kotlin
Vendored

// !WITH_NEW_INFERENCE
fun useDeclaredVariables() {
for ((a, b)<!SYNTAX!><!>) {
<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>a<!>
<!DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>b<!>
}
}
fun checkersShouldRun() {
for ((@A a, _)<!SYNTAX!><!>) {
}
}
annotation class A