From 2d37173ea1b669867d89faae61e6e3bb63d72692 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, 4 Jan 2022 14:21:22 +0800 Subject: fix #886 --- test/crossfile/references.lua | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'test/crossfile') diff --git a/test/crossfile/references.lua b/test/crossfile/references.lua index 145792b5..cd7689ed 100644 --- a/test/crossfile/references.lua +++ b/test/crossfile/references.lua @@ -179,3 +179,22 @@ TEST { ]] } } + +TEST { + { + path = 'a.lua', + content = [[ + local t = {} + t.<~x~> = 1 + return t + ]] + }, + { + path = 'b.lua', + content = [[ + local t = require 'a' + + print(t.) + ]] + } +} -- cgit v1.2.3