From cf3d5108c52e9194ed9fff1a54569edb7bd6ee1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Thu, 14 Apr 2022 23:38:13 +0800 Subject: #1050 class -> local/global -> .value --- test/definition/luadoc.lua | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'test/definition/luadoc.lua') diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua index 97b12b85..d7ac9a5b 100644 --- a/test/definition/luadoc.lua +++ b/test/definition/luadoc.lua @@ -859,3 +859,25 @@ end ]] + +TEST [[ +---@class A +local t = { + = nil, +} + +---@type A +local f +f. +]] + +TEST [[ +---@class A +G = { + = nil, +} + +---@type A +local f +f. +]] -- cgit v1.2.3