diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-17 17:44:51 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-17 17:44:51 +0800 |
commit | 1abbbdc89bb5511aead3ac8155ae68265b90a6e9 (patch) | |
tree | 37458759e015edcf0e9650df0fcb1155978c44ed /test | |
parent | 09f1cf4e0380437087536ec0d79eddae44a0e569 (diff) | |
download | lua-language-server-1abbbdc89bb5511aead3ac8155ae68265b90a6e9.zip |
some fix
Diffstat (limited to 'test')
-rw-r--r-- | test/type_inference/init.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 09f51b8e..aa424d9c 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -2674,3 +2674,16 @@ local t local <?x?> = t.x ]] + +TEST 'integer' [[ +local function f() + return GG +end + +local t + +t.x = 1 +t.x = f() + +print(t.<?x?>) +]] |