local f = if true then function(x) 42 else function(y) 42; f(1, 2)