summaryrefslogtreecommitdiff
path: root/test/type_inference
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-11-10 00:15:33 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-11-10 00:15:33 +0800
commit2a9570cac436f4015453cef839600e5cf5f3f372 (patch)
treea18617ae63952f08f85d7b8943561d2059a5436b /test/type_inference
parent63168b71c091c154c8fdd65e9360755c15395fb7 (diff)
downloadlua-language-server-2a9570cac436f4015453cef839600e5cf5f3f372.zip
fix #1679
Diffstat (limited to 'test/type_inference')
-rw-r--r--test/type_inference/init.lua9
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
+]]