diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/hover/init.lua | 2 | ||||
-rw-r--r-- | test/type_inference/init.lua | 12 |
2 files changed, 13 insertions, 1 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua index d4160dfa..199df06d 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -1576,7 +1576,7 @@ local x: unknown ]] TEST [[ ----@type any +---@type unknown local <?t?> t.a = 1 ]] diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index d199f79b..fd6e464f 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -1439,3 +1439,15 @@ TEST '(string|integer)[]' [[ ---@type (string|integer)[] local <?x?> ]] + +TEST 'boolean' [[ +---@type table<string, boolean> +local t + +---@alias uri string + +---@type string +local uri + +local <?v?> = t[uri] +]] |