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
default constructor being called for constant declaration with .= in Rakudo #2866
Comments
From @masak<pmichaud> p6: my Rat constant $r .= new(3,5); say $r; # should work |
From @ronaldxsJust to note some similar examples that also seem to have problems that $ class C {has $.a}; my C constant $c .= new(:a<red>); use of uninitialized value of type Mu in string context in any <anon> class Foo { method new ($self: Str $string) { Above program reveals that $c is incorrectly set to type Str. |
@ronaldxs - Status changed from 'new' to 'open' |
From @MouqFixed in Rakudo commit: commit 2f7046f18b18067d77a6717f2157ec458215754f Add type info to constant decls. Fixes #114506 Tests added to S04-declarations/constant.t in Roast commit: commit e650e931f0e8b6d5fb38afda445169d345de50b1 Add tests for #114506 Closing this ticket as resolved :) On Sun Aug 19 17:08:48 2012, ronaldxs wrote:
|
@Mouq - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#114506 (status was 'resolved')
Searchable as RT114506$
The text was updated successfully, but these errors were encountered: