Skip to content

Commit eaee084

Browse files
committed
Adjust boolean-context tests for boolean literals
1 parent 6de89c6 commit eaee084

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/diagnostics/boolean-context.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ if <!a!> then end
55
66
---@type number
77
local b
8-
if <!not b!> then end
8+
if not b then end
99
1010
---@type number
1111
local c
1212
local x = <!c!> or "3"
1313
1414
---@type false
1515
local d
16-
local y = <!d!> and "4"
16+
local y = d and "4"
1717
1818
---@type boolean
1919
local e

0 commit comments

Comments
 (0)