From eb4cc1e5915a2ac0fceaa4f6b08f7f0f762d3fb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Wed, 26 Jun 2019 20:52:59 +0800 Subject: =?UTF-8?q?=E7=94=A8option=E6=9D=A5=E5=AE=9E=E7=8E=B0=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E7=A7=81=E6=9C=89=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/test/hover/init.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'server/test') diff --git a/server/test/hover/init.lua b/server/test/hover/init.lua index f1a18c06..108bc978 100644 --- a/server/test/hover/init.lua +++ b/server/test/hover/init.lua @@ -812,3 +812,13 @@ local = 1 [[ local x: number = 1 ]] + +TEST [[ +---@param x number {optional = 'after'} +---@param y boolean {optional = 'self'} +---@param z string +function (x, y, z) end +]] +[=[ +function f([x: number [, y: boolean], z: string]) +]=] -- cgit v1.2.3