PSI: Add parentheses around annotated expressions in returns

#KT-8260 Fixed
This commit is contained in:
Alexey Sedunov
2015-06-26 14:19:25 +03:00
parent 8c9863e759
commit f6965b5004
6 changed files with 26 additions and 3 deletions
@@ -0,0 +1,3 @@
annotation class ann
fun foo(): Int = <caret>@ann 1
@@ -0,0 +1,5 @@
annotation class ann
fun foo(): Int {
return (@ann 1)
}
@@ -0,0 +1 @@
fun foo(): Int = <caret>ann@ 1
@@ -0,0 +1,3 @@
fun foo(): Int {
return (ann@ 1)
}