summaryrefslogtreecommitdiff
path: root/test/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2024-02-19 15:28:25 +0800
committerGitHub <noreply@github.com>2024-02-19 15:28:25 +0800
commit8fc5a88967e5f56296ed3f5a65fd7391905dbcbd (patch)
tree059b6960da2ffde5373b6adfb42159b099f38eeb /test/diagnostics
parent7848d0367a89a66207fc4b5e8d6593520bf40ffa (diff)
parent7503881344501248ac36d25d85dfc560809ced21 (diff)
downloadlua-language-server-8fc5a88967e5f56296ed3f5a65fd7391905dbcbd.zip
Merge pull request #2505 from lizho/master
support tuple type
Diffstat (limited to 'test/diagnostics')
-rw-r--r--test/diagnostics/assign-type-mismatch.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/diagnostics/assign-type-mismatch.lua b/test/diagnostics/assign-type-mismatch.lua
index d4632563..dc55a7da 100644
--- a/test/diagnostics/assign-type-mismatch.lua
+++ b/test/diagnostics/assign-type-mismatch.lua
@@ -99,6 +99,13 @@ t['x'] = nil
]]
TEST [[
+---@type [boolean]
+local t = { <![1]!> = nil }
+
+t = nil
+]]
+
+TEST [[
local t = { true }
t[1] = nil