Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Open
coke opened this Issue · 0 comments

1 participant

@coke
Owner

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 join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.