Inline adds parentheses when it is necessary.

Test data for Remove Unnecessary Parentheses was updated, since parentheses in foo && (bar && baz) is not "unnecessary": removing it changes program semantics.

 #KT-2637 in progress
This commit is contained in:
Evgeny Gerashchenko
2013-07-08 19:19:41 +04:00
parent a394afcce1
commit 55b221776b
57 changed files with 413 additions and 21 deletions
@@ -0,0 +1,4 @@
fun f() {
val v = foo()
println(<caret>v[1])
}