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

qualified names in enum keys neither produce error nor work #5625

Open
p6rt opened this issue Aug 29, 2016 · 1 comment
Open

qualified names in enum keys neither produce error nor work #5625

p6rt opened this issue Aug 29, 2016 · 1 comment
Labels
RFC Request For Comments

Comments

@p6rt
Copy link

p6rt commented Aug 29, 2016

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

Searchable as RT129128$

@p6rt
Copy link
Author

p6rt commented Aug 29, 2016

From @gfldex

enum Collision(<Coll​::Str Coll​::Int>);
my Collision $c;
dd $c.WHAT.enums;
$c = Coll​::Str;

# OUTPUT«Map.new(("Coll​::Int" => 1,"Coll​::Str" => 0))␤Could not fin symbol '&Str'␤ in block <unit> at <tmp> line 1␤␤AActually thrown ain block <unit> at <tmp> line 1␤␤»

# It should either produce an error when the enum is declared or just
# work.

@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