fun foo() { var a = 1 var b = 2 var c = 3 for (i in 0..5) { if (a == 2) { b = c c = a } else { b = a c = b } } if (c == a) { foo() } }