diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-01 11:08:40 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-12-01 11:08:40 +0800 |
commit | ee1195cfadd0e290aa8de2487d9df7902d05ac51 (patch) | |
tree | d6a51ad342327478755286080572189db389887b /test/definition/bug.lua | |
parent | 58815ee05b636efe9330cd26926f4aeb047984a9 (diff) | |
download | lua-language-server-ee1195cfadd0e290aa8de2487d9df7902d05ac51.zip |
add tests
Diffstat (limited to 'test/definition/bug.lua')
-rw-r--r-- | test/definition/bug.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/definition/bug.lua b/test/definition/bug.lua index 0550b3b9..e7158848 100644 --- a/test/definition/bug.lua +++ b/test/definition/bug.lua @@ -129,3 +129,20 @@ end local t = init() t:<?add?>() ]] + +TEST [[ +local t = {} +t.<!f1!> = 1 +t.<!f2!> = t.f1 + +print(t.<?f2?>) +]] + +TEST [[ +local t = {} +t.<!f1!> = 1 +t.<!f2!> = t.f1 +t.<!f1!> = t.f2 + +print(t.<?f2?>) +]] |