From e44142d13914bc98a4f9af0029cfadbc16e222a4 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, 29 Sep 2021 21:17:15 +0800 Subject: resolve #632 `---@module 'moduleName'` --- test/crossfile/definition.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test/crossfile/definition.lua') diff --git a/test/crossfile/definition.lua b/test/crossfile/definition.lua index 01bf0202..37c10db6 100644 --- a/test/crossfile/definition.lua +++ b/test/crossfile/definition.lua @@ -128,6 +128,20 @@ TEST { }, } +TEST { + { + path = 'a.lua', + content = 'local = 1; return ', + }, + { + path = 'b.lua', + content = [[ +---@module 'a' +local <~t~> +]], + }, +} + --if require 'bee.platform'.OS == 'Windows' then --TEST { -- { -- cgit v1.2.3