// "Create local variable 'foo'" "true" fun test(n: Int): Int { return when (n) { 1 -> { foo } else -> { n + 1 } } }