More accurate deparenthesize (keeping annotations) in some IDE actions

So #KT-19004 Fixed
This commit is contained in:
Mikhail Glukhikh
2017-07-20 14:51:44 +03:00
parent 7fb78a0372
commit e6872c52a3
15 changed files with 132 additions and 9 deletions
@@ -0,0 +1,13 @@
// WITH_RUNTIME
fun foo(a: Any) {
<caret>if (a == "") {
println(a)
}
else if (a is String) {
println(a)
}
else if (a is List<*>) {
@Suppress("UNCHECKED_CAST")
println(a as List<String>)
}
}