KT-7715 Highlight var's that can be replaced by val's

#KT-7715 Fixed
This commit is contained in:
Valentin Kipyatkov
2016-03-04 16:27:01 +03:00
parent e5b5a8db42
commit 28c5dde875
28 changed files with 350 additions and 15 deletions
+6
View File
@@ -0,0 +1,6 @@
fun foo(p: Int) {
var v1: Int
var v2: Int
if (p > 0) v1 = 1 else v1 = 2
v2 = 1
}