Skip to content

Instantly share code, notes, and snippets.

@tst2005
Created June 14, 2017 17:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tst2005/58b4c325b624a1a5b4c411d12e3a273b to your computer and use it in GitHub Desktop.
Save tst2005/58b4c325b624a1a5b4c411d12e3a273b to your computer and use it in GitHub Desktop.
FR portée des variables
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