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

can't coerce to role by calling #5608

Open
p6rt opened this issue Aug 20, 2016 · 2 comments
Open

can't coerce to role by calling #5608

p6rt opened this issue Aug 20, 2016 · 2 comments
Labels
RFC Request For Comments testneeded

Comments

@p6rt
Copy link

p6rt commented Aug 20, 2016

Migrated from rt.perl.org#129023 (status was 'new')

Searchable as RT129023$

@p6rt
Copy link
Author

p6rt commented Aug 20, 2016

From zefram@fysh.org

Coercion by calling a type object​:

Int("03")
3
Numeric("03")
Cannot invoke this object (REPR​: Uninstantiable; Numeric)
  in block <unit> at <unknown file> line 1

The inconsistency here is less than awesome. I think this should work
for roles just as it does for classes.

-zefram

@p6rt p6rt added the RFC Request For Comments label Jan 5, 2020
@usev6
Copy link

usev6 commented Apr 4, 2021

This seems to work now:

$ ./rakudo-m -e 'dd Numeric("03")'
3

Tagging as 'testneeded'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC Request For Comments testneeded
Projects
None yet
Development

No branches or pull requests

2 participants