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

Array type constraints stick to later declarations. #1332

Closed
p6rt opened this issue Sep 30, 2009 · 3 comments
Closed

Array type constraints stick to later declarations. #1332

p6rt opened this issue Sep 30, 2009 · 3 comments

Comments

@p6rt
Copy link

p6rt commented Sep 30, 2009

Migrated from rt.perl.org#69482 (status was 'resolved')

Searchable as RT69482$

@p6rt
Copy link
Author

p6rt commented Sep 30, 2009

From thewallguy@gmail.com

[22​:14] <quietfanatic> I am currently fighting an incorrugible bug whereby
an auspiciously declared array becomes unwilling to store anything but
Ints.[22​:18]
<quietfanatic> Caught it!
[22​:19] <quietfanatic> rakudo​: our Int @​A1; our @​A2; @​A2[0] = "Str"
[22​:19] <+p6eval> rakudo c8181a​: OUTPUT«Assignment type check failed;
expected Int, but got Str␤in Main (/tmp/mVjCqSxaqo​:0)␤»
[22​:20] <quietfanatic> The first array being declared as Int messes with the
second array as well.

@p6rt
Copy link
Author

p6rt commented Mar 11, 2010

From @moritz

I'm please to inform you that this bug has been fixed (and is tested in
S09-typed-arrays/arrays.t)

@p6rt
Copy link
Author

p6rt commented Mar 11, 2010

@moritz - Status changed from 'new' to 'resolved'

@p6rt p6rt closed this as completed Mar 11, 2010
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

No branches or pull requests

1 participant