Tests for redeclarations with multi-decls

This commit is contained in:
Andrey Breslav
2012-08-17 20:26:27 +04:00
parent 409e474748
commit b44c6f2d6e
2 changed files with 20 additions and 0 deletions
@@ -0,0 +1,15 @@
class A {
fun component1() : Int = 1
fun component2() : Int = 2
}
fun a() {
val (<!REDECLARATION!>a<!>, <!REDECLARATION!>a<!>) = A()
val (x, <!REDECLARATION!>y<!>) = A();
val <!REDECLARATION!>b<!> = 1
use(b)
val (<!REDECLARATION!>b<!>, <!REDECLARATION!>y<!>) = A();
}
fun use(a: Any): Any = a