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:
@@ -0,0 +1,5 @@
|
||||
fun f() {
|
||||
// this case is not processed specifically in implementation, but it works
|
||||
val x = -y
|
||||
println(5-<caret>x)
|
||||
}
|
||||
Reference in New Issue
Block a user