Multi declaration is now a separate target in KotlinTarget

This commit is contained in:
Mikhail Glukhikh
2015-09-23 16:41:40 +03:00
parent 789f351f6f
commit 997e9a7dd7
6 changed files with 43 additions and 2 deletions
@@ -0,0 +1,9 @@
annotation class Ann
data class Pair(val x: Int, val y: Int)
fun foo(): Int {
<!WRONG_ANNOTATION_TARGET!>@Ann<!> val (a, b) = Pair(12, 34)
<!UNRESOLVED_REFERENCE!>@Err<!> val (c, d) = Pair(56, 78)
return a + b + c + d
}