print and warn has incorrect type

It uses generics and in first glance it may look fine hower there will be some cases where it will mess up and will cause type errors.
print/warn is meant to have type (…any) → () hower currently it has
image
image
Issues araise when you have examples like
image
Temporally solution to this bug can be made

local warn:(...any) -> () = warn
3 Likes

Thx for reporting. Do you have the type solver beta on by chance?

1 Like

Yes, I do have Type Solver Beta enabled, and I also do believe it happens without it enabled as well.

Hi there, thanks for the report! The error you’re having here is not actually related to the typing of print and warn which are correct, but rather related to xpcall itself.

1 Like