PlutoLang / Pluto

A superset of Lua 5.4 with a focus on general-purpose programming.
https://pluto-lang.org/docs/Introduction
MIT License
337 stars 20 forks source link

Null Coalesce Issue #867

Closed XmiliaH closed 1 month ago

XmiliaH commented 1 month ago

The following lua code will print 1 but should print a boolean since not will convert a value to a bool.

local a = 1
local b = b
local x = not (a ?? b)
print(x)