mirror of
https://github.com/luau-lang/luau.git
synced 2025-03-04 03:01:41 +00:00
![]() This change introduces a flag (`LuauUserTypeFunTypeofReturnsType`) that, when enabled, sets `__type` on the type userdata's metatable to "type". This behaviour was described in the user-defined type function RFC (https://rfcs.luau.org/user-defined-type-functions.html), but seems to have been missed; this change implements that behaviour. Currently this does not change `typeof(t) == 'type'` emitting an unknown type warning as I don't trust myself to implement it due to my general lack of C++ knowledge; this can be worked on later. |
||
---|---|---|
.. | ||
include/Luau | ||
src |