var globalOne; var globalTwo; fun main() { var a = 1; for (; a <= 3; a = a + 1) { fun closure() { print(a); } if (globalOne == nil) { globalOne = closure; } else { globalTwo = closure; } } } main(); globalOne(); # expect: 4 globalTwo(); # expect: 4