Skip to content

[Compiler] things annotated to true / false (?) seem to emit wrong type #2244

@hardlyardi

Description

@hardlyardi

Self explanatory. true & false annotations appear to emit bytecode for LBC_TYPE_ANY instead of LBC_TYPE_BOOLEAN when viewed in luau-lsp:

Image

annotating to singleton variants providing less information to the compiler than boolean seems weird to me

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions