Skip to content
New issue

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

RakuAST: Parameterized type constraints not working for constants #5570

Open
ab5tract opened this issue May 16, 2024 · 0 comments
Open

RakuAST: Parameterized type constraints not working for constants #5570

ab5tract opened this issue May 16, 2024 · 0 comments
Labels
RAKUDO_RAKUAST=1 Related to parsing Raku code with RAKUDO_RAKUAST=1 set

Comments

@ab5tract
Copy link
Collaborator

While investigating #1504, I noticed this omission:

> set-rakuast; r 'my Array[Int] constant $foo .= new; dd $foo'
Type check failed in constant declaration of $foo; expected Array[Int] but got Array ([]).  You have to pass an explicitly
typed array, not one that just might happen to contain elements of the
correct type.
@ab5tract ab5tract added the RAKUDO_RAKUAST=1 Related to parsing Raku code with RAKUDO_RAKUAST=1 set label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RAKUDO_RAKUAST=1 Related to parsing Raku code with RAKUDO_RAKUAST=1 set
Projects
None yet
Development

No branches or pull requests

1 participant