diff options
Diffstat (limited to 'test/diagnostics')
-rw-r--r-- | test/diagnostics/assign-type-mismatch.lua | 7 |
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 |