diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-07-11 20:34:02 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-07-11 20:34:02 +0800 |
commit | 8f056d36ec61dd91cfab282780dc1786df646fcb (patch) | |
tree | e81ec976ad922c4bc74dedf29548f2a7c322f68e /test | |
parent | 3820962ca2d23d525bc8417c8088e7eeb667cba1 (diff) | |
download | lua-language-server-8f056d36ec61dd91cfab282780dc1786df646fcb.zip |
Revert "resolve #1209"
This reverts commit 3820962ca2d23d525bc8417c8088e7eeb667cba1.
Diffstat (limited to 'test')
-rw-r--r-- | test/diagnostics/common.lua | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua index fab02caf..0df678d1 100644 --- a/test/diagnostics/common.lua +++ b/test/diagnostics/common.lua @@ -133,40 +133,6 @@ _ENV = nil ]] TEST [[ ----@diagnostic disable: undefined-global -_ENV = nil -<!print!>(<!A!>) -- `print` and `A` should warning -]] - -TEST [[ ----@diagnostic disable: undefined-global -local _ENV = nil -<!print!>(<!A!>) -- `print` and `A` should warning -]] - -TEST [[ -_ENV = {} -print(A) -- no warning -]] - -TEST [[ -local _ENV = {} -print(A) -- no warning -]] - -TEST [[ ----@type iolib -_ENV = {} -<!print!>(stderr) -- `print` is warning but `stderr` is not -]] - -TEST [[ ----@type iolib -local _ENV = {} -<!print!>(stderr) -- `print` is warning but `stderr` is not -]] - -TEST [[ local _ENV = { print = print } print(1) ]] |