Skip to content
This repository has been archived by the owner on Feb 3, 2021. It is now read-only.

No such method in class: "&bless" #19

Open
coke opened this issue Jul 17, 2012 · 0 comments
Open

No such method in class: "&bless" #19

coke opened this issue Jul 17, 2012 · 0 comments

Comments

@coke
Copy link

coke commented Jul 17, 2012

The following code (cribbed from t/spec/S32-trig/cos.t) fails:

class NotComplex is Cool {
    has $.value;

    multi method new(Complex $value is copy) {
        self.bless(*, :$value);
    }
}

my $a = NotComplex.new(0 + 2i);
say $a;

with:

*** No such method in class NotComplex: "&bless"

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant