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
LTA error message when type in signature in role wasn't declared in Rakudo #3063
Comments
From @masak<tadzik> r: role A::B { method run(A::C $) { !!! } } # LTA error message |
From @usev6The following fails with X::Parameter::InvalidType, which looks good to me. I added a test to S14-roles/basic.t with commit Raku/roast@cf760b1f69 $ perl6 -e 'role A::B { method foo(A::C $a) { } }' If there is just type A in the signature the error differs, though: $ perl6-m -e 'role A::B { method foo(A $a) { } }' # fails with X::AdHoc std has the same error message for both commands: <bartolin> std: role A::B { method foo(A::C $a) { } } |
1 similar comment
From @usev6The following fails with X::Parameter::InvalidType, which looks good to me. I added a test to S14-roles/basic.t with commit Raku/roast@cf760b1f69 $ perl6 -e 'role A::B { method foo(A::C $a) { } }' If there is just type A in the signature the error differs, though: $ perl6-m -e 'role A::B { method foo(A $a) { } }' # fails with X::AdHoc std has the same error message for both commands: <bartolin> std: role A::B { method foo(A::C $a) { } } |
@usev6 - Status changed from 'new' to 'open' |
From @usev6Just found ticket https://rt-archive.perl.org/perl6/Ticket/Display.html?id=123396 which reasons about 'role A::B {}; sub foo(A $a) {}' and the like. I'll add the bit about 'role A::B { method foo(A $a) { } }' to that ticket, since it seems to be a separate problem. If noone objects, I'm going to close this ticket. |
1 similar comment
From @usev6Just found ticket https://rt-archive.perl.org/perl6/Ticket/Display.html?id=123396 which reasons about 'role A::B {}; sub foo(A $a) {}' and the like. I'll add the bit about 'role A::B { method foo(A $a) { } }' to that ticket, since it seems to be a separate problem. If noone objects, I'm going to close this ticket. |
@usev6 - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#117041 (status was 'resolved')
Searchable as RT117041$
The text was updated successfully, but these errors were encountered: