Fix typechecker in case of "for ((a, b) in) { }"

Fixes NDFDE
This commit is contained in:
Pavel V. Talanov
2016-03-01 20:03:35 +03:00
parent 363d545bd5
commit 1affb05b7b
6 changed files with 42 additions and 2 deletions
@@ -0,0 +1,14 @@
fun useDeclaredVariables() {
for ((a, b)<!SYNTAX!><!>) {
<!UNUSED_EXPRESSION, DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>a<!>
<!UNUSED_EXPRESSION, DEBUG_INFO_ELEMENT_WITH_ERROR_TYPE!>b<!>
}
}
fun checkersShouldRun() {
for ((@A a, <!UNDERSCORE_IS_RESERVED!>_<!>)<!SYNTAX!><!>) {
}
}
annotation class A
@@ -0,0 +1,11 @@
package
public fun checkersShouldRun(): kotlin.Unit
public fun useDeclaredVariables(): kotlin.Unit
public final annotation class A : kotlin.Annotation {
public constructor A()
public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean
public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int
public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String
}