diff options
Diffstat (limited to 'test/diagnostics')
-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 +]] |