Skip to content

Conversation

@hardlyardi
Copy link

currently the RFC specifies this behavior:

the __index metamethod will only be invoked if the indexer is not found within the current scope

this will be changed to:

the type should reflect the result of the expression (tableValue & ~nil) | (__indexValue) where ~ is the negation type symbol.

this better represents the actual runtime behavior for metatables

Co-authored-by: Vyacheslav Egorov <WheretIB@gmail.com>
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.

2 participants