-
Notifications
You must be signed in to change notification settings - Fork 1
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
Declaring variables with a package type should be disallowed in Rakudo #3600
Comments
From @masak<masak> m: role A::B {}; sub foo(A $a) {} |
From @masak<masak> m: role A::B {}; sub foo(A $a) {} |
From @usev6Nowadays the error message no longer starts with the word 'Type': $ perl6 -e 'role A::B {}; sub foo(A $a) {}' $ perl6 -e 'package A { }; sub foo(A $a) { }' The same error results with the following code, taken from ticket 117041: $ perl6 -e 'role A::B {method foo(A $a) {} }' |
1 similar comment
From @usev6Nowadays the error message no longer starts with the word 'Type': $ perl6 -e 'role A::B {}; sub foo(A $a) {}' $ perl6 -e 'package A { }; sub foo(A $a) { }' The same error results with the following code, taken from ticket 117041: $ perl6 -e 'role A::B {method foo(A $a) {} }' |
@usev6 - Status changed from 'new' to 'open' |
From @usev6Behaviour has changed and the latter two commands fail with the same error as the first two (for those compare ticket 123397, https://rt-archive.perl.org/perl6/Ticket/Display.html?id=123397): $ /perl6 -e 'role A::B {}; my A $a; say $a' $ perl6 -e 'package A {}; my A $a; say $a' So, this works as expected now. I'm tagging the ticket 'testneeded'. |
1 similar comment
From @usev6Behaviour has changed and the latter two commands fail with the same error as the first two (for those compare ticket 123397, https://rt-archive.perl.org/perl6/Ticket/Display.html?id=123397): $ /perl6 -e 'role A::B {}; my A $a; say $a' $ perl6 -e 'package A {}; my A $a; say $a' So, this works as expected now. I'm tagging the ticket 'testneeded'. |
@usev6 - Status changed from 'new' to 'open' |
From @jnthnOn Wed Feb 11 11:30:22 2015, bartolin@gmx.de wrote:
Added a typed exception for this (and the similar Parameter type error), and tested it. |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#123397 (status was 'resolved')
Searchable as RT123397$
The text was updated successfully, but these errors were encountered: