From 6d8dbcc0d8ae0368fd6a5f03a9b269b7396b4900 Mon Sep 17 00:00:00 2001 From: Lei Zhu Date: Mon, 21 Dec 2020 11:33:48 +0800 Subject: =?UTF-8?q?=E5=A4=84=E7=90=86luadoc=E5=9C=A8=E6=9F=90=E4=BA=9B?= =?UTF-8?q?=E6=83=85=E5=86=B5=E7=BB=91=E5=AE=9A=E9=94=99=E8=AF=AF=E7=9A=84?= =?UTF-8?q?=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test/definition/luadoc.lua | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'test/definition') diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua index 31134135..4a23b2ac 100644 --- a/test/definition/luadoc.lua +++ b/test/definition/luadoc.lua @@ -169,3 +169,31 @@ end AAAA.a. ]] + +TEST [[ +---@class Cat +local ---hahaha +---@class Dog +local m2 +---@type Cat +local ?> +]] + +TEST [[ +---@class Cat +local --hahaha +---@class Dog +local m2 +---@type Cat +local ?> +]] + +TEST [[ +---@class Cat + local ---hahaha + + ---@class Dog + local m2 + ---@type Cat + local ?> +]] -- cgit v1.2.3