Enhancement for "join declaration and assignment": now can handle also local variables, relevant inspection added #KT-12095 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-11-17 16:02:19 +03:00
parent c44ecded42
commit 45e28bef1c
27 changed files with 244 additions and 61 deletions
@@ -0,0 +1,8 @@
// IS_APPLICABLE: false
fun foo(flag: Boolean) {
var x: Double<caret>
if (flag) {
x = 3.14
}
x = 2.71
}