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
Can't override class's Numeric #59
Comments
|
Still happens on latest NQP. |
|
I've had another look at this. On JVM, it turns out the numify op looks for a method Num rather than Numeric. Changing that reveals another bug where it tries to unbox the int as a num, but if you also replace 3 with 3.0 it works on JVM at least. Still not quite sure what's happening on Parrot. |
|
Parrot's long gone, partcl isn't a thing anymore, but this is still not working: |
|
Updated error text: |
20:23 < [Coke]> nqp: class EEK {method Numeric() {return 3}}; my $a:=
EEK.new(); say(+$a);
20:23 <+p6eval> nqp: OUTPUT«No applicable candidates found to dispatch to for
'Numeric'. Available candidates are:current instr.: 'Numeric'
pc 3450 (src/stage2/gen/NQPCORE.setting.pir:1608)
(src/stage2/NQPCORE.setting:171)»
20:29 < [Coke]> r: class EEK {method Numeric() {return 3}}; my $a:= EEK.new();
say(+$a);
20:29 <+p6eval> rakudo fb11f1: OUTPUT«3»
This is a (minor) blocker for partcl-nqp work.
The text was updated successfully, but these errors were encountered: