Add support of comments in asymmetric returns

This commit is contained in:
Alexey Sedunov
2013-04-15 16:01:37 +04:00
parent 8757e3763b
commit d5e78c3bd5
5 changed files with 239 additions and 118 deletions
@@ -0,0 +1,5 @@
fun test(n: Int): String {
<caret>if (n == 1) return "one"
// comment
return "two"
}
@@ -0,0 +1,4 @@
fun test(n: Int): String {
<caret>return if (n == 1) "one" else "two"
// comment
}