diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-08-13 00:30:40 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-08-13 00:30:40 +0800 |
commit | e8e5becffd87486347db7b3b191c1a1eff19c664 (patch) | |
tree | 6ae17dc33bda62ed97317a97ce5dc8f7aadbc01b /test | |
parent | 7cc86b43e1284bf173f46c3e3ba760551831ddf1 (diff) | |
download | lua-language-server-e8e5becffd87486347db7b3b191c1a1eff19c664.zip |
fix #1430
Diffstat (limited to 'test')
-rw-r--r-- | test/type_inference/init.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 5f71dfa2..8c18bfb5 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -3761,3 +3761,15 @@ TEST 'integerA' [[ for <?i?> = 1, 10 do end ]] + +TEST 'string' [[ +---@class A +---@field x string + +---@class B : A +local t = {} + +t.x = t.x + +print(t.<?x?>) +]] |