From 14f8d12a617e1a3ec0e3483cbae3447afa7a7aa8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 5 Jul 2021 15:53:37 +0800 Subject: parse literaltable --- test/hover/init.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test') diff --git a/test/hover/init.lua b/test/hover/init.lua index d9492fd1..79469b90 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -1601,3 +1601,15 @@ local t: Position { z?: number, } ]] + +TEST [[ +---@type { x: string, y: number, z: boolean } +local +]] +[[ +local t: { + x: string, + y: number, + z: boolean, +} +]] -- cgit v1.2.3