[New solver] type<any> could not be converted into type<nil>

export type Success<A = any> =	{Code: "Success",	Data: A}
export type Error =				{Code: "Error",		Message: string}

export type MyType = {
	Func: (self: MyType) -> (Success<nil> | Error),
}
 
local value = {} :: MyType

function value:Func()
	return {Code = "Success", Data = nil} :: Success
end


or even if i do
{968B62F1-B718-4738-A880-770F994D27CD}

Expected behavior

i should be allowed to use nil when the generic is set to any

Thanks for the report!

It happens that this is a duplicate of the exact bug I’d been working on.

The fix should go out with the release after next. (0.704)