From 01143c5e09c15c4aae278a2728db753619b35530 Mon Sep 17 00:00:00 2001 From: sumneko Date: Mon, 22 Apr 2019 20:39:13 +0800 Subject: =?UTF-8?q?EmmyClass=20=E4=B9=9F=E8=A6=81=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E8=A1=A8=E7=9A=84=E5=86=85=E5=AE=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/test/hover/init.lua | 26 +++++++++++++++++++------- 1 file changed, 19 insertions(+), 7 deletions(-) (limited to 'server/test/hover') diff --git a/server/test/hover/init.lua b/server/test/hover/init.lua index bdd26932..79904e6c 100644 --- a/server/test/hover/init.lua +++ b/server/test/hover/init.lua @@ -470,7 +470,7 @@ TEST[[ local = class() ]] [[ -local x: *Class +local x: *Class {} ]] TEST[[ @@ -478,7 +478,7 @@ TEST[[ = class() ]] [[ -global x: *Class +global x: *Class {} ]] TEST[[ @@ -488,7 +488,7 @@ local t = { } ]] [[ -field x: *Class +field x: *Class {} ]] TEST[[ @@ -496,7 +496,7 @@ TEST[[ local = class() ]] [[ -local x: *Class +local x: *Class {} ]] TEST[[ @@ -504,7 +504,7 @@ TEST[[ = class() ]] [[ -global x: *Class +global x: *Class {} ]] TEST[[ @@ -514,7 +514,7 @@ local t = { } ]] [[ -field x: *Class +field x: *Class {} ]] TEST[[ @@ -522,5 +522,17 @@ TEST[[ local = class() ]] [[ -local x: *A|B|C +local x: *A|B|C {} +]] + +TEST[[ +---@class Class +local = { + b = 1 +} +]] +[[ +local x: *Class { + b: number = 1, +} ]] -- cgit v1.2.3