Created
June 14, 2017 17:31
-
-
Save tst2005/58b4c325b624a1a5b4c411d12e3a273b to your computer and use it in GitHub Desktop.
FR portée des variables
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local a = 1 | |
local function a() return a end | |
assert( type( a() ) == "function" ) | |
local a = 1 | |
local a; function a() return a end | |
assert( type( a() ) == "function" ) | |
local a = 1 | |
local a = function() return a end | |
assert( type( a() ) == "number" ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment