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 for bad multi method calls at compile time #3711
Comments
From @drforrOS: Ubuntu 14.10 Linux 64-bit, 2GiB RAM, VirtualBox rakudo commit 67a75c1e1d9ed99326b7e426eea3cd969dba35ea Accidentally called $class.new(...) without a matching signature. The The entirety of the error is: --cut here-- Below is the class, followed by the admittedly incorrect attempt to --cut here-- constant j = Polar.new( 0e0 ); say j.re; |
From @MouqFWIW the *%_ is correct. I'm marking this LTA error as dependent upon #114204, since that ticket covers the lack of Capture information in the error. On another note, changing `constant j` to `my \term:<j>` or `my $j` restores the line numbers to the error. This gives a clue, since the RHS of constants are evaluated at compile time. And indeed, that seems to be the culprit for the missing line numbers: $ perl6 -e'class Polar {proto method new (|) {*}; multi method new(Real \mag, Real \theta) { }}; Polar.new(1e0)' $ perl6 -e'class Polar {proto method new (|) {*}; multi method new(Real \mag, Real \theta) { }}; BEGIN Polar.new(1e0)' I found ticket #81502 which covers this error, and am adding that as another dependency for this bug. I have no problem if someone wants to close this as being a duplicate. The two dependencies seem to cover the problem, although this ticket/use case may still be useful to have :) On Mon Mar 02 12:41:03 2015, drforr@pobox.com wrote:
|
The RT System itself - Status changed from 'new' to 'open' |
From @jnthnOn Mon Mar 02 12:41:03 2015, drforr@pobox.com wrote:
It now reports rather more information about what went wrong; ===SORRY!=== Error while compiling z.p6 Test added in S32-exceptions/misc.t. |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#123967 (status was 'resolved')
Searchable as RT123967$
The text was updated successfully, but these errors were encountered: