-
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
multi sub infix:<=> is hiding all other infix:<=> as if multi would be ignored #1972
Comments
From @gfldex# rakudobug_infix:<=>.p6 } multi sub infix:<=>(A $a, Str $value){ sub b() { say b = 'foo'; $ perl6 'rakudobug_infix:<=>.p6' No applicable candidates found to dispatch to for 'infix:<=>'. Available in main program body at line 15:rakudobug_infix:<=>.p6 -- |
From @KodiologistI added some tests to S03-operators/assign.t (roast fd5e4b1e2e). |
@Kodiologist - Status changed from 'new' to 'open' |
From @diakopterthe behavior now matches STD. closable with testneeded imho. 12:50 <diakopter> r: https://gist.github.com/2823010 class A is Hash { } multi sub infix:<=>(A $a, Str $value){ sub b() { say b = 'foo'; |
From @MouqBehavior only matches STD because we were parsing incorrectly before. "=" has lower precedence than function calls, so the fact that it dies is like the fact that "foo && bar" dies (where the correct code would be "foo() && bar" or "foo and bar") The issue remains that multi candidates aren't called. Besides the test in S03-operators/assign.t, here's a command line golf: perl6 -e'class A is Hash {}; multi infix:<=>(A The correct behavior would be to print 42. On Tue May 29 11:05:28 2012, diakopter.gmail.com wrote:
|
From @jdvThe premise of this ticket seems invalid as per below so closing. 12:34 < jdv79> m: class A is Hash {}; multi infix:<=>(A |
@jdv - Status changed from 'open' to 'resolved' |
@usev6 - Status changed from 'resolved' to 'rejected' |
From @usev6For the records: I removed the (skipped) test for this ticket from S03-operators/assign.t with commit Raku/roast@511b3d1e7b |
Migrated from rt.perl.org#76734 (status was 'rejected')
Searchable as RT76734$
The text was updated successfully, but these errors were encountered: