summaryrefslogtreecommitdiff
path: root/test/crossfile
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-11 17:02:42 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-11 17:02:42 +0800
commit599065480e33e21e66d307b06e8f8deae101756e (patch)
treeae97e27121d9c1be78ae6df5bb25dcc5f4e74e30 /test/crossfile
parentbce8b096a5ccfffd928ba6e56980b62201c3d479 (diff)
downloadlua-language-server-599065480e33e21e66d307b06e8f8deae101756e.zip
fix #1034 don't require self
Diffstat (limited to 'test/crossfile')
-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
+ ]]
+ }
+}