From 82ccd9baf64bf739e0bf7f8251075acb9e286356 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sat, 5 Nov 2022 01:01:56 +0800 Subject: only ignore empty functions in meta files #1457 --- test/diagnostics/common.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/diagnostics/common.lua') diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua index e899c0c4..7c2ffb60 100644 --- a/test/diagnostics/common.lua +++ b/test/diagnostics/common.lua @@ -1149,6 +1149,8 @@ return m ]] TEST [[ +---@meta + ---@class A ---@field a boolean @@ -1769,6 +1771,8 @@ function t:init() end ]] TEST [[ +---@meta + return function f(x, y, z) end ]] @@ -1816,6 +1820,8 @@ end ]] TEST [[ +---@meta + ---@return number, number local function r2() end @@ -2057,6 +2063,7 @@ local _ = t ]] TEST [[ +---@meta ---@diagnostic disable: duplicate-set-field ---@class A local m = {} -- cgit v1.2.3