1 2 3 4 5 6 7 8 9 10
fun f() { while (true) { var i = "i"; fun g() { print i; } return g; } } var h = f(); h(); // expect: i