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
Null PMC access when calling .new on a subclass with a proto overriding the regular .new in Rakudo #3142
Comments
From @masak<dagurval> r: class A is DateTime { proto method new($) {*} }; A.new |
From @usev6Just an update: There is no longer a Null PMC access error, but Rakudo complains about no matching signature: $ perl6-m -e 'class A is Any { proto method new($) {*} }; A.new(now)' $ perl6-p -e 'class A is Any { proto method new($) {*} }; A.new(now)' $ perl6-j -e 'class A is Any { proto method new($) {*} }; A.new(now)' |
1 similar comment
From @usev6Just an update: There is no longer a Null PMC access error, but Rakudo complains about no matching signature: $ perl6-m -e 'class A is Any { proto method new($) {*} }; A.new(now)' $ perl6-p -e 'class A is Any { proto method new($) {*} }; A.new(now)' $ perl6-j -e 'class A is Any { proto method new($) {*} }; A.new(now)' |
@usev6 - Status changed from 'new' to 'open' |
From @masakOn Thu Oct 16 00:10:27 2014, bartolin@gmx.de wrote:
First off, resolving ticket because the Null PMC access is gone, and that's what was reported. Secondly, I think the above behavior is right. The error message comes from correctly finding and dispatching on the declared proto, and then correctly complaining that no declared multi (of which, as it happens, there are none) matches. |
@masak - Status changed from 'open' to 'resolved' |
From @usev6I added a test to S32-exceptions/misc.t with the following commit: Raku/roast@d55c943637 |
Migrated from rt.perl.org#118067 (status was 'resolved')
Searchable as RT118067$
The text was updated successfully, but these errors were encountered: