summaryrefslogtreecommitdiff
path: root/test/crossfile/definition.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/crossfile/definition.lua')
-rw-r--r--test/crossfile/definition.lua11
1 files changed, 11 insertions, 0 deletions
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.<?x?>)
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
+ ]]
+ }
+}