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

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

@coke

Description

@coke

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions