diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-11-02 17:59:54 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-11-02 17:59:54 +0800 |
commit | c16264eac3b25f6f2bce14b0504071787bd2bc54 (patch) | |
tree | 25a76c376b0bcb244e1281ff89afd5aa55600615 /test/diagnostics/init.lua | |
parent | a1fc6ac2f84804d3dbbde2ce5df02907f496ce7f (diff) | |
download | lua-language-server-c16264eac3b25f6f2bce14b0504071787bd2bc54.zip |
#687 await-in-sync
Diffstat (limited to 'test/diagnostics/init.lua')
-rw-r--r-- | test/diagnostics/init.lua | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua index ab55cd92..6d97c7f6 100644 --- a/test/diagnostics/init.lua +++ b/test/diagnostics/init.lua @@ -6,6 +6,7 @@ local catch = require 'catch' config.get 'Lua.diagnostics.neededFileStatus'['deprecated'] = 'Any' config.get 'Lua.diagnostics.neededFileStatus'['type-check'] = 'Any' +config.get 'Lua.diagnostics.neededFileStatus'['await-in-sync'] = 'Any' rawset(_G, 'TEST', true) @@ -1348,12 +1349,22 @@ end f() ]] ----TODO(arthur) -do return end - TEST [[ ---@type file* local f f:read '*a' f:read('*a') ]] + +TEST [[ +function F() + <!coroutine.yield!>() +end +]] + +TEST [[ +---@async +function F() + coroutine.yield() +end +]] |