From ccce6e0b430a29cd58bfcffc07fd17ebaba3ddc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Mon, 14 Nov 2022 20:25:50 +0800 Subject: `duplicate-doc-field` check cross files --- test/crossfile/diagnostic.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/crossfile') diff --git a/test/crossfile/diagnostic.lua b/test/crossfile/diagnostic.lua index e574204a..58c89805 100644 --- a/test/crossfile/diagnostic.lua +++ b/test/crossfile/diagnostic.lua @@ -165,3 +165,14 @@ TEST { print(obj.) ]]} } + +TEST { + { path = 'a.lua', content = [[ + ---@class A + ---@field number + ]]}, + { path = 'b.lua', content = [[ + ---@class A + ---@field number + ]]} +} -- cgit v1.2.3