diff options
Diffstat (limited to 'test/basic')
-rw-r--r-- | test/basic/linker.lua | 1 | ||||
-rw-r--r-- | test/basic/linker.txt | 14 |
2 files changed, 15 insertions, 0 deletions
diff --git a/test/basic/linker.lua b/test/basic/linker.lua index d658c782..0b01f441 100644 --- a/test/basic/linker.lua +++ b/test/basic/linker.lua @@ -37,6 +37,7 @@ local function TEST(script) files.setText('', newScript) local source = getSource(pos) assert(source) + linker.compileLinks(source) local result = linker.getLink(source) for key in pairs(CARE) do assert(result[key] == expect[key]) diff --git a/test/basic/linker.txt b/test/basic/linker.txt index 76b1980c..284623cd 100644 --- a/test/basic/linker.txt +++ b/test/basic/linker.txt @@ -72,3 +72,17 @@ expect: 't|2|b|c' forward: nil backward: 't|2|b' + '|c' last: nil + +```lua +---@return <?A?> +local function f() +end + +local <!x!> = f() +``` + +'d|A' +'f|1:1' +'f|1' + ':1' +'l|1' + ':1' +'s|1' + ':1' |