Files
kotlin-fork/idea/testData/inspections/canBeVal/kt11891.kt
T
Denis Zharkov 2f0b052540 Fix infinite loop in CanBeValInspection
Obviously there should be 'return' instead of 'continue'
Otherwise the loop will not end

 #KT-11891 Fixed
2016-04-14 14:01:39 +03:00

13 lines
199 B
Kotlin
Vendored

fun main(args: Array<String?>) {
var a: String?
if (args.size == 1) {
a = args[0]
}
else {
a = args.toString()
}
if (a != null && a.equals("cde")) return
}