summaryrefslogtreecommitdiff
path: root/test/diagnostics/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/diagnostics/init.lua')
-rw-r--r--test/diagnostics/init.lua30
1 files changed, 28 insertions, 2 deletions
diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua
index 8d204daa..00752c42 100644
--- a/test/diagnostics/init.lua
+++ b/test/diagnostics/init.lua
@@ -646,8 +646,8 @@ x = (x + y) or 0
TEST [[
local t = {}
-t.a = 1
-t.a = 2
+<!t.a!> = 1
+<!t.a!> = 2
return t
]]
@@ -1005,3 +1005,29 @@ TEST [[
return function (a)
end
]]
+
+TEST [[
+local m = {}
+
+function <!m:fff!>()
+end
+
+function <!m:fff!>()
+end
+
+return m
+]]
+
+TEST [[
+local m = {}
+
+function m:fff()
+end
+
+do
+ function m:fff()
+ end
+end
+
+return m
+]]