Skip to content

Comments

Implement RFC type:issubtypeof#2133

Open
PhoenixWhitefire wants to merge 14 commits intoluau-lang:masterfrom
PhoenixWhitefire:type-issubtypeof
Open

Implement RFC type:issubtypeof#2133
PhoenixWhitefire wants to merge 14 commits intoluau-lang:masterfrom
PhoenixWhitefire:type-issubtypeof

Conversation

@PhoenixWhitefire
Copy link
Contributor

@PhoenixWhitefire PhoenixWhitefire commented Dec 6, 2025

Additionally, adds a new test, as well as the flags LuauTypeDefinitionsTypeIsSubtypeOf and LuauTypeFunctionTypeIsSubtypeOf.

https://rfcs.luau.org/method-type-issubtypeof.html

luau-lang/rfcs#101

Additionally, adds a new test, as well as the flags `LuauTypeDefinitionsTypeIsSubtypeOf` and `LuauTypeFunctionTypeIsSubtypeOf`
@aatxe
Copy link
Member

aatxe commented Jan 20, 2026

This needs to be rebased.

@PhoenixWhitefire
Copy link
Contributor Author

Merged


// TODO: split into separate tagged unions when the new solver can appropriately handle that.
static constexpr const char* kBuiltinDefinitionTypeMethodSrc = R"BUILTIN_SRC(
// With both `extern` replacing `class`, and `:issubtypeof`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can probably clean up the class replacement soon, might just wait for that to avoid this mess.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure

@PhoenixWhitefire PhoenixWhitefire marked this pull request as draft February 5, 2026 10:49
@PhoenixWhitefire PhoenixWhitefire marked this pull request as ready for review February 7, 2026 08:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants