From 7f95e6f71862967bcdc9ca1d78a1947dd177ca3e Mon Sep 17 00:00:00 2001 From: lizho Date: Tue, 30 Jan 2024 09:36:41 +0800 Subject: support tuple type --- test/hover/init.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/hover') diff --git a/test/hover/init.lua b/test/hover/init.lua index 63220a59..0cfce3a4 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -1228,6 +1228,17 @@ local local x: table ]] +TEST [[ +---@type [ClassA, ClassB] +local +]] +[[ +local x: [ClassA, ClassB] { + [1]: ClassA, + [2]: ClassB, +} +]] + --TEST [[ -----@class ClassA -----@class ClassB -- cgit v1.2.3