summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/definition/bug.lua8
-rw-r--r--test/definition/function.lua2
2 files changed, 5 insertions, 5 deletions
diff --git a/test/definition/bug.lua b/test/definition/bug.lua
index ef7295d1..58c2ed59 100644
--- a/test/definition/bug.lua
+++ b/test/definition/bug.lua
@@ -262,7 +262,7 @@ TEST [[
---@type B
local t
-local <!<?v?>!> = t.x
+t.<?x?>
]]
TEST [[
@@ -274,7 +274,7 @@ TEST [[
---@type B
local t
-local <!<?v?>!> = t.x
+t.<?x?>
]]
TEST [[
@@ -286,7 +286,7 @@ function A:x() end
---@class B: A
local B
-function B:<!x!>() end
+<!function B:x() end!>
---@type B
local t
@@ -298,7 +298,7 @@ TEST [[
---@class A
local A
-function A:<!x!>() end
+<!function A:x() end!>
---@class B: A
local B
diff --git a/test/definition/function.lua b/test/definition/function.lua
index f5d32e78..95dd1b57 100644
--- a/test/definition/function.lua
+++ b/test/definition/function.lua
@@ -24,6 +24,6 @@ end
]]
TEST [[
-local <!f!> = function () end
+local <!f!> = <!function () end!>
<?f?>()
]]