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 dispatch and generics don't mix #704
Comments
From @moritzParrot r36678, Rakudo 0f87695c: class Scissor { }; multi wins(Scissor $x, Paper $y) { 1 }; say wins(Scissor.new, Paper.new); I think this is also a bug, not 100% sure though: ./perl6 -e 'multi f(::T $x, T $y) { "first" }; multi f(Int $x, Num P.S.: it would be nice if this bug could be fixed quickly, since I want -- |
From @moritzOn Tue Feb 17 00:07:07 2009, mlenz@physik.uni-wuerzburg.de wrote:
I've added those as tests to S06-multi/type-based.t (currently fudged) Cheers, |
The RT System itself - Status changed from 'new' to 'open' |
From @jnthnMoritz Lenz wrote:
I think that's related to any lexically scoped thingy declared in the
It's not. We do the sorting on what we statically know the types to be
I'll try and do that - will see how my initial idea for the fix goes. It Thanks, Jonathan |
From @moritzjnthn++ has fixed this, and I unfudged the tests. Peace and happiness |
@moritz - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#63276 (status was 'resolved')
Searchable as RT63276$
The text was updated successfully, but these errors were encountered: