Skip to content
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

attribute example dies #2184

Closed
coke opened this issue Jul 17, 2018 · 3 comments
Closed

attribute example dies #2184

coke opened this issue Jul 17, 2018 · 3 comments
Assignees
Labels
bug Error of some kind, from a typo to errors in the examples.

Comments

@coke
Copy link
Collaborator

coke commented Jul 17, 2018

d6b162b added this example

    class D {
        has $.a is required("it is a good idea");
    }
    my $d = D.new;
    CATCH{ default { say .^name, ': ', .Str } }
    # OUTPUT: «X::Attribute::Required: The attribute '$!a' is required because it is a good idea,␤but you did not provide a value for it.␤»

But the example dies with a compile time error

===SORRY!===
Object of type Str in QAST::WVal, but not in SC
@lizmat
Copy link
Collaborator

lizmat commented Jul 17, 2018

This was fixed with commit 7c349b7e8098b84960e . Getting a more recent rakudo should fix this issue.

@coke coke self-assigned this Jul 17, 2018
@coke
Copy link
Collaborator Author

coke commented Jul 17, 2018

Verified, sorry for the noise.

@coke coke closed this as completed Jul 17, 2018
@JJ JJ reopened this Jul 20, 2018
@JJ
Copy link
Contributor

JJ commented Jul 20, 2018

I didn't think this was going to ever happen, but it's happened. I'm reopening an issue closed by someone else.
Thing is, it would be better to mention the version where this is actually working, and maybe provide an alternative for previous versions, as indicated here

@JJ JJ added the bug Error of some kind, from a typo to errors in the examples. label Jul 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Error of some kind, from a typo to errors in the examples.
Projects
None yet
Development

No branches or pull requests

3 participants