From f8551a93927ab782ddd58397f86580dc6301a4be 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, 24 Apr 2022 05:46:51 +0800 Subject: `setlocal` can be marked by `---@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 974e3f73..19f868f4 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -2056,3 +2056,10 @@ local iter for in iter do end ]] + +TEST 'integer' [[ +local x + +---@type integer + = XXX +]] -- cgit v1.2.3