diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2018-11-19 21:14:44 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2018-11-19 21:14:44 +0800 |
commit | 15f76378dbe93a3cbff155c8e98f9bed59af75b0 (patch) | |
tree | 37d18868909bd3c9cbd96378af6343ee82ce92b3 /test/definition/local.lua | |
parent | 2712ffefa8275ad9039b6355846378e5f2019d38 (diff) | |
download | lua-language-server-15f76378dbe93a3cbff155c8e98f9bed59af75b0.zip |
全局变量在第一次赋值时定义
Diffstat (limited to 'test/definition/local.lua')
-rw-r--r-- | test/definition/local.lua | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/test/definition/local.lua b/test/definition/local.lua index bbfd3752..0737443d 100644 --- a/test/definition/local.lua +++ b/test/definition/local.lua @@ -19,16 +19,6 @@ local z, y, <!x!> = 1 ]] TEST [[ -function <!x!> () end -<?x?> = 1 -]] - -TEST [[ -local function <!x!> () end -<?x?> = 1 -]] - -TEST [[ local x local <!x!> <?x?> = 1 @@ -199,10 +189,3 @@ local x = function () <?x?> = 1 end ]] - -TEST [[ -local x -local function <!x!> () - <?x?> = 1 -end -]] |