From 7f95e6f71862967bcdc9ca1d78a1947dd177ca3e Mon Sep 17 00:00:00 2001 From: lizho Date: Tue, 30 Jan 2024 09:36:41 +0800 Subject: support tuple type --- test/diagnostics/assign-type-mismatch.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/diagnostics') 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 @@ -98,6 +98,13 @@ local t = {} t['x'] = nil ]] +TEST [[ +---@type [boolean] +local t = { = nil } + +t = nil +]] + TEST [[ local t = { true } -- cgit v1.2.3