Skip to content

Question regarding code behavior.

#1
Auto-translated
function get_x() return 42 end function test_1() local x = get_x() return x end function test_2() return get_x() end x1 = test_1() x2 = test_2() print(x1, " ", x2) -- 42 nil Is this a bug or a feature, or am I missing something?