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
Binding to access of typed array doesn't type check #3674
Comments
From @MouqThe following should die: $ perl6 -e'my Int @a; @a[0] := "foo"' Presumably the error would be similar to the correct error given by $ perl6 -e'my Int @a; @a[0] = "foo"' |
From @usev6I just linked this ticket from https://rt-archive.perl.org/perl6/Ticket/Display.html?id=81682, which is now closed but pointed to a similiar problem: $ perl6-m -e 'my Int @a = 1, 2, 3; my Str $x = "foo"; @a[0] := $x; say @a[0];' It would be nice, if both variants (binding to a string directly and binding to a scalar variable of type Str) would be tested, once the type check is implemented |
1 similar comment
From @usev6I just linked this ticket from https://rt-archive.perl.org/perl6/Ticket/Display.html?id=81682, which is now closed but pointed to a similiar problem: $ perl6-m -e 'my Int @a = 1, 2, 3; my Str $x = "foo"; @a[0] := $x; say @a[0];' It would be nice, if both variants (binding to a string directly and binding to a scalar variable of type Str) would be tested, once the type check is implemented |
@usev6 - Status changed from 'new' to 'open' |
From @jnthnOn Tue Jun 30 04:13:41 2015, bartolin@gmx.de wrote:
Fixed, and added both test cases to S09-typed-arrays/arrays.t. |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#123769 (status was 'resolved')
Searchable as RT123769$
The text was updated successfully, but these errors were encountered: