diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-11-10 00:15:33 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-11-10 00:15:33 +0800 |
commit | 2a9570cac436f4015453cef839600e5cf5f3f372 (patch) | |
tree | a18617ae63952f08f85d7b8943561d2059a5436b /test/type_inference | |
parent | 63168b71c091c154c8fdd65e9360755c15395fb7 (diff) | |
download | lua-language-server-2a9570cac436f4015453cef839600e5cf5f3f372.zip |
fix #1679
Diffstat (limited to 'test/type_inference')
-rw-r--r-- | test/type_inference/init.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 40f9891d..4a60766b 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -3965,3 +3965,12 @@ local t local <?n?> = t[2] ]] + +TEST 'N' [[ +---@class N: number +local x + +if x == 0.1 then + print(<?x?>) +end +]] |