From 599065480e33e21e66d307b06e8f8deae101756e 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, 11 Apr 2022 17:02:42 +0800 Subject: fix #1034 don't require self --- test/crossfile/definition.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/crossfile') diff --git a/test/crossfile/definition.lua b/test/crossfile/definition.lua index f44f2707..45f21697 100644 --- a/test/crossfile/definition.lua +++ b/test/crossfile/definition.lua @@ -977,3 +977,14 @@ print(t.) config.set(nil, 'Lua.runtime.pathStrict', false) config.set(nil, 'Lua.runtime.path', originRuntimePath) + +-- Don't require self +TEST { + { + path = 'a.lua', + content = [[ +local <~f~> = require 'a' +return function () end + ]] + } +} -- cgit v1.2.3