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
Compiling the following class
active class Main def main() : unit val str = "foo" str(0) end end
results in the internal error
encorec: No match in record selector argTypes
I suspect this is due to trying to use array access (0) on the string. (It would be nice to use str(n) to access elements of the string.)
(0)
str(n)
The text was updated successfully, but these errors were encountered:
Notably, strings are not arrays. They are objects. Eventually, strings should and will support this operations if we chose to go ahead with RFC #591.
Sorry, something went wrong.
Parsing strings is hard. But I now see that I can convert a string into an array of chars.
(Obviously, this has nothing to do with your compiler error which is weird.)
Successfully merging a pull request may close this issue.
Compiling the following class
results in the internal error
I suspect this is due to trying to use array access
(0)
on the string.(It would be nice to use
str(n)
to access elements of the string.)The text was updated successfully, but these errors were encountered: