Unwrap annotated expression in deparenthesize

It's needed to complete resolved call with annotated function literal
This commit is contained in:
Denis Zharkov
2015-05-05 12:21:25 +03:00
parent 9101505eca
commit 9e23698fe3
4 changed files with 29 additions and 0 deletions
@@ -0,0 +1,9 @@
// !DIAGNOSTICS: -UNUSED_PARAMETER
annotation class Ann
fun <T> bar(block: (T) -> Int) {}
fun foo() {
bar<Int> @Ann [Ann] { x -> x }
bar<Int> @Ann [Ann] label@{ x -> x }
}