diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-04-11 17:02:42 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-04-11 17:02:42 +0800 |
commit | 599065480e33e21e66d307b06e8f8deae101756e (patch) | |
tree | ae97e27121d9c1be78ae6df5bb25dcc5f4e74e30 /test | |
parent | bce8b096a5ccfffd928ba6e56980b62201c3d479 (diff) | |
download | lua-language-server-599065480e33e21e66d307b06e8f8deae101756e.zip |
fix #1034 don't require self
Diffstat (limited to 'test')
-rw-r--r-- | test/crossfile/definition.lua | 11 |
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 + ]] + } +} |