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

'is required' attribute leads to goof error message if used as default. #4674

Closed
p6rt opened this issue Oct 23, 2015 · 3 comments
Closed

'is required' attribute leads to goof error message if used as default. #4674

p6rt opened this issue Oct 23, 2015 · 3 comments
Labels

Comments

@p6rt
Copy link

p6rt commented Oct 23, 2015

Migrated from rt.perl.org#126436 (status was 'resolved')

Searchable as RT126436$

@p6rt
Copy link
Author

p6rt commented Oct 23, 2015

From @LLFourn

class Point2D {
  has Int​:D $.x is required;
  has Int​:D $.y = self.x;
}

Point2D.new(); #!> Type check failed in assignment to $!y; expected Int​:D
but got Int​:D

should obviously be the 'x is required' error message

@p6rt
Copy link
Author

p6rt commented Nov 9, 2015

From @LLFourn

fixed with​: Raku/roast#78

@p6rt p6rt closed this as completed Nov 15, 2015
@p6rt
Copy link
Author

p6rt commented Nov 15, 2015

@moritz - Status changed from 'new' to 'resolved'

@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant