From 51592cb52f944d8b22ce0a7e1ac1a940a4aef735 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9C=80=E8=90=8C=E5=B0=8F=E6=B1=90?= Date: Sun, 16 Aug 2020 00:09:54 +0800 Subject: =?UTF-8?q?=E4=BB=8E=E4=B8=9A=E5=8A=A1=E5=B1=82=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E7=BC=93=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- test-beta/crossfile/references.lua | 63 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) (limited to 'test-beta/crossfile/references.lua') diff --git a/test-beta/crossfile/references.lua b/test-beta/crossfile/references.lua index 3c952def..a0e34cfd 100644 --- a/test-beta/crossfile/references.lua +++ b/test-beta/crossfile/references.lua @@ -331,3 +331,66 @@ TEST { ]] } } + +TEST { + { + path = 'a.lua', + content = [[ + local function () + end + + return { + = , + } + ]] + }, + { + path = 'b1.lua', + content = [[ + local t = require 'a' + t.() + ]] + }, + { + path = 'b2.lua', + content = [[ + local t = require 'a' + t.() + ]] + }, + { + path = 'b3.lua', + content = [[ + local t = require 'a' + t.() + ]] + }, + { + path = 'b4.lua', + content = [[ + local t = require 'a' + t.() + ]] + }, + { + path = 'b5.lua', + content = [[ + local t = require 'a' + t.() + ]] + }, + { + path = 'b6.lua', + content = [[ + local t = require 'a' + t.() + ]] + }, + { + path = 'b7.lua', + content = [[ + local t = require 'a' + t.() + ]] + }, +} -- cgit v1.2.3