Files
kotlin-fork/idea/testData/inspections/canBeVal/twoVariables.kt
T
2016-03-22 18:01:52 +03:00

6 lines
96 B
Kotlin
Vendored

fun foo(p: Int) {
var v1: Int
var v2: Int
if (p > 0) v1 = 1 else v1 = 2
v2 = 1
}