summaryrefslogtreecommitdiff
path: root/test/diagnostics/await-in-sync.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/diagnostics/await-in-sync.lua')
-rw-r--r--test/diagnostics/await-in-sync.lua49
1 files changed, 0 insertions, 49 deletions
diff --git a/test/diagnostics/await-in-sync.lua b/test/diagnostics/await-in-sync.lua
index 277101dd..323c1113 100644
--- a/test/diagnostics/await-in-sync.lua
+++ b/test/diagnostics/await-in-sync.lua
@@ -118,34 +118,6 @@ end
]]
TEST [[
----@param cb fun()
-local function f(cb)
- return cb
-end
-
----@async
-local function af()
- return nil
-end
-
-f(<!af!>)
-]]
-
-TEST [[
----@param cb async fun()
-local function f(cb)
- return cb
-end
-
----@async
-local function af()
- return nil
-end
-
-f(af)
-]]
-
-TEST [[
local function f(cb)
cb()
end
@@ -158,24 +130,3 @@ end
return af
]]
-
-TEST [[
-local function f(cb)
- cb()
-end
-
----@async
-local function af()
- f(function () ---@async
- return nil
- end)
-end
-
-return af
-]]
-
-TEST [[
-local _ = type(function () ---@async
- return nil
-end)
-]]