luau
luau copied to clipboard
error location reported incorrectly when comparing two things that cannot be compared
This code reports a type error for the entirety of the if statement's condition, when the error should only be reported for the right side of the and
:
local t = {}
local a = t[1]
local b = 10
if a ~= nil and b ~= nil then end```