luau icon indicating copy to clipboard operation
luau copied to clipboard

Reassigning table upvalue errors with new solver

Open Ketasaja opened this issue 1 year ago • 0 comments

Tested on 0.635, with no errors in non-strict mode.

--!strict
local t: {[string]: string} = {}

local function f()
	t = t --[[ TypeError: Type function instance t1 where t1 = union<{ [string]: string }, t1> is uninhabited
	This is likely to be a bug, please report it at https://github.com/luau-lang/luau/issues ]]
end

t = t

Ketasaja avatar Jul 25 '24 03:07 Ketasaja