From 770f21794065e42919a515da2a50a2cf1e1eff60 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Tue, 10 Aug 2021 11:52:46 +0800 Subject: fix #244 --- test/crossfile/definition.lua | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'test') diff --git a/test/crossfile/definition.lua b/test/crossfile/definition.lua index be6a5dc6..d492761e 100644 --- a/test/crossfile/definition.lua +++ b/test/crossfile/definition.lua @@ -784,3 +784,24 @@ TEST { ]], }, } + +TEST { + { + path = 'a.lua', + content = [[ +local t = GlobalTable + +t.settings = { + = 1 +} + ]] + }, + { + path = 'b.lua', + content = [[ +local b = GlobalTable.settings + +print(b.) + ]] + } +} -- cgit v1.2.3