You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following code snippet shows a bug when always_use_return is enabled:
module ExampleModule
global switch = false
function example()
if switch
1
end
end
function example2()
1
end
end
The second function will add a return statement, the first will not. This is despite the fact that the first function returns either 1 or nothing, depending on the value of switch.
The text was updated successfully, but these errors were encountered:
The following code snippet shows a bug when
always_use_return
is enabled:The second function will add a
return
statement, the first will not. This is despite the fact that the first function returns either1
ornothing
, depending on the value ofswitch
.The text was updated successfully, but these errors were encountered: