Resolve annotations on expressions and multi-declarations

This commit is contained in:
Andrey Breslav
2013-09-22 21:22:59 +04:00
parent 836eef67fa
commit b379ab3ebd
6 changed files with 46 additions and 4 deletions
@@ -0,0 +1,3 @@
fun foo() = [ann] 1
annotation class ann
@@ -0,0 +1,7 @@
fun test(): Any? {
[ann] val (a, b) = P(1, 1)
return a + b
}
annotation class ann
data class P(val a: Int, val b: Int)