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

enum key for optional positional does not work #5631

Closed
p6rt opened this issue Sep 1, 2016 · 4 comments
Closed

enum key for optional positional does not work #5631

p6rt opened this issue Sep 1, 2016 · 4 comments
Labels
RFC Request For Comments

Comments

@p6rt
Copy link

p6rt commented Sep 1, 2016

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

Searchable as RT129160$

@p6rt
Copy link
Author

p6rt commented Sep 1, 2016

From @gfldex

enum Options(<Foo Bar>);
sub f(Foo $foo?){};
f();

# OUTPUT«Invocant requires an instance of type Int, but a type object was passed. Did you forget a .new?␤ in sub f at <tmp> line 1␤ inblock <unit> at <tmp> line 1␤␤»

# expected to work
# 17​:37 < TimToady> gfldex​: please rakudobug that

@p6rt
Copy link
Author

p6rt commented Sep 1, 2016

@coke - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Sep 5, 2016

From @zoffixznet

Fixed in rakudo/rakudo@490cf72
Tests added in Raku/roast@09c8d3f

@p6rt
Copy link
Author

p6rt commented Sep 5, 2016

@zoffixznet - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Sep 5, 2016
@p6rt p6rt added the RFC Request For Comments label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC Request For Comments
Projects
None yet
Development

No branches or pull requests

1 participant