Skip to content

Implement RFC type:issubtypeof#2133

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

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

Conversation

@PhoenixWhitefire
Copy link
Copy Markdown
Contributor

@PhoenixWhitefire PhoenixWhitefire commented Dec 6, 2025

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

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
Copy Markdown
Member

aatxe commented Jan 20, 2026

This needs to be rebased.

@PhoenixWhitefire
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@PhoenixWhitefire PhoenixWhitefire marked this pull request as draft March 7, 2026 03:23
@PhoenixWhitefire PhoenixWhitefire marked this pull request as ready for review March 7, 2026 06:28
@PhoenixWhitefire
Copy link
Copy Markdown
Contributor Author

PhoenixWhitefire commented Mar 7, 2026

Updated to clip/be ready for clip of LuauTypeCheckerUdtfRenameClassToExtern

@PhoenixWhitefire PhoenixWhitefire marked this pull request as draft March 20, 2026 20:37
@PhoenixWhitefire PhoenixWhitefire marked this pull request as ready for review April 8, 2026 17:21
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