diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-23 02:05:01 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-23 02:05:01 +0800 |
commit | c2fb1d5e889510f8175c25277587e7ea91fb2170 (patch) | |
tree | 1ad171838794694a7d4c64987088578c70f57b26 /test | |
parent | 830165b6025107188e564fc4590e5eb633e1a13d (diff) | |
download | lua-language-server-c2fb1d5e889510f8175c25277587e7ea91fb2170.zip |
fix #1228 `doc.as` may not work
Diffstat (limited to 'test')
-rw-r--r-- | test/type_inference/init.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index bc497f37..33184569 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -2998,3 +2998,9 @@ local t local <?n?> = t[i] ]] + +TEST 'string' [=[ +local x = true +local y = x--[[@as integer]] --is `integer` here +local z = <?x?>--[[@as string]] --is `true` here +]=] |