From 4ddea4e9386ab0b0ec9583e6c468b52a0d7a8958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 14 Jul 2021 16:49:48 +0800 Subject: fix infer of infer of `---@type {}[]` --- test/type_inference/init.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test') diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index b5d4db16..a3a06bfd 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -894,3 +894,10 @@ TEST 'string[][]' [[ ---@type string[][] local ]] + +TEST 'table' [[ +---@type {}[] +local t + +local = t[1] +]] -- cgit v1.2.3