From 4e0a890060aea1eb54b14b3a77cba8fc42ceeebb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sun, 10 Apr 2022 03:12:05 +0800 Subject: supports `---@type (string|integer)[]` --- test/type_inference/init.lua | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/type_inference') diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 4d1cfb4a..d199f79b 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -1434,3 +1434,8 @@ local t = { 'x' } local = t[#t] ]] + +TEST '(string|integer)[]' [[ +---@type (string|integer)[] +local +]] -- cgit v1.2.3