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
Presence of an Mu:U: multi method candidate busts autothreading for all the other candidates #2551
Comments
From @moritzuse MONKEY_TYPING; augment class Str { ('a' & 'b').FOO(); Output: I'd argue that since the FOO method in class Mu fails to type-check I believe (though I can't prove it) that this is the real problem behind |
From @usev6At least nowadays this seems to happen only when augmenting class Mu. (I modified the original code a little by adding 'multi' keywords, but I think it still shows the same problem.) $ perl6 -e 'use MONKEY-TYPING; augment class Mu { multi method FOO(Mu:U:) { say "Mu.FOO" } }; augment class Str { multi method FOO(Str:D:) { say "Str.FOO" } }; ("a" & "b").FOO; Str.FOO' $ perl6 -e 'use MONKEY-TYPING; augment class Any { multi method FOO(Mu:U:) { say "Mu.FOO" } }; augment class Str { multi method FOO(Str:D:) { say "Str.FOO" } }; ("a" & "b").FOO; Str.FOO' |
1 similar comment
From @usev6At least nowadays this seems to happen only when augmenting class Mu. (I modified the original code a little by adding 'multi' keywords, but I think it still shows the same problem.) $ perl6 -e 'use MONKEY-TYPING; augment class Mu { multi method FOO(Mu:U:) { say "Mu.FOO" } }; augment class Str { multi method FOO(Str:D:) { say "Str.FOO" } }; ("a" & "b").FOO; Str.FOO' $ perl6 -e 'use MONKEY-TYPING; augment class Any { multi method FOO(Mu:U:) { say "Mu.FOO" } }; augment class Str { multi method FOO(Str:D:) { say "Str.FOO" } }; ("a" & "b").FOO; Str.FOO' |
@usev6 - Status changed from 'new' to 'open' |
This is probably not prioritary, but can someone take a look? |
Migrated from rt.perl.org#103112 (status was 'open')
Searchable as RT103112$
The text was updated successfully, but these errors were encountered: