summaryrefslogtreecommitdiff
path: root/test/diagnostics
diff options
context:
space:
mode:
Diffstat (limited to 'test/diagnostics')
-rw-r--r--test/diagnostics/common.lua14
1 files changed, 9 insertions, 5 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index 722bdea7..6aa1dd6a 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -1378,8 +1378,12 @@ TEST [[
---@class A 1
]]
---TEST [[
---local value
---value = '1'
---value = value:gsub()
---]]
+TEST [[
+return ('1'):gsub()
+]]
+
+TEST [[
+local value
+value = '1'
+value = value:gsub()
+]]