Expression can be parenthesized on replace with if (KT-22874, EA-91186)

#KT-22874 Fixed
This commit is contained in:
Nikolay Krasko
2018-02-15 17:33:39 +03:00
parent 67183ad3b0
commit 866129984e
4 changed files with 26 additions and 13 deletions
@@ -0,0 +1,3 @@
fun test(some: Boolean) {
<selection>some</selection>.equals(true)
}
@@ -0,0 +1,6 @@
fun test(some: Boolean) {
(if (some) {
<caret>
} else {
}).equals(true)
}