diff options
Diffstat (limited to 'test/type_inference/init.lua')
-rw-r--r-- | test/type_inference/init.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 51de9cd5..12a8e2ab 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -4268,3 +4268,13 @@ local b = '2'; local <?c?> = a .. b; ]] + +TEST 'number|{ [1]: string }' [[ +---@alias Some +---| { [1]: string } +---| number + +local x ---@type Some + +print(<?x?>) +]] |