We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some code like this how to define the Lemon type ?
local Fruit = record end -- Lemon is Fruit subclassing local Lemon = record end
The text was updated successfully, but these errors were encountered:
Currently, there is no mechanism for this. However, this PR implements tagged records, which may be used to create subtypes:
local Fruit = record tag fruit_type: string end local Lemon = record is Fruit with fruit_type = "lemon" end
Sorry, something went wrong.
Let's close this as a duplicate of #97, to avoid having the same topic spread across various issues. @cloudfreexiao See you there!
No branches or pull requests
some code like this how to define the Lemon type ?
The text was updated successfully, but these errors were encountered: