From 5f8bad49693f6e7ad67f049e0fa606326fe2ad67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sat, 15 May 2021 15:01:23 +0800 Subject: update infer --- test/type_inference/init.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index 3de36e5e..99205a74 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -363,12 +363,16 @@ self.[#self.t+1] = {} ]] TEST 'string' [[ +---@class string + ---@type string[] local x local = x[1] ]] TEST 'string' [[ +---@class string + ---@return string[] local function f() end local x = f() -- cgit v1.2.3