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

failure to identify a dynamically defined enum element #3773

Closed
p6rt opened this issue Apr 7, 2015 · 5 comments
Closed

failure to identify a dynamically defined enum element #3773

p6rt opened this issue Apr 7, 2015 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Apr 7, 2015

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

Searchable as RT124251$

@p6rt
Copy link
Author

p6rt commented Apr 7, 2015

From @grondilu

Hello,

$ perl6 -e 'my enum Square <a1 b2>; say b2'
b2
$ perl6 -e 'my enum Square ("a".."h" X~ 1 .. 8); say b2'
===SORRY!=== Error while compiling /tmp/1F2clCKkPm␤Undeclared routine​:
  b2 used at line 1

$ perl6 --version
This is perl6 version 2015.03-180-ga3b4710 built on MoarVM version 2015.03-55-g0acf845

See also IRC on this day.

@p6rt
Copy link
Author

p6rt commented Aug 30, 2016

From @skids

Seems fixed.

$ perl6 -e 'my enum Square ("a".."h" X~ 1 .. 8); say b2; say b2.enums'
b2
Map.new((​:a1(0),​:a2(1),​:a3(2),​:a4(3),​:a5(4),​:a6(5),​:a7(6),​:a8(7),​:b1(8),​:b2(9),​:b3(10),​:b4(11),​:b5(12),​:b6(13),​:b7(14),​:b8(15),​:c1(16),​:c2(17),​:c3(18),​:c4(19),​:c5(20),​:c6(21),​:c7(22),​:c8(23),​:d1(24),​:d2(25),​:d3(26),​:d4(27),​:d5(28),​:d6(29),​:d7(30),​:d8(31),​:e1(32),​:e2(33),​:e3(34),​:e4(35),​:e5(36),​:e6(37),​:e7(38),​:e8(39),​:f1(40),​:f2(41),​:f3(42),​:f4(43),​:f5(44),​:f6(45),​:f7(46),​:f8(47),​:g1(48),​:g2(49),​:g3(50),​:g4(51),​:g5(52),​:g6(53),​:g7(54),​:g8(55),​:h1(56),​:h2(57),​:h3(58),​:h4(59),​:h5(60),​:h6(61),​:h7(62),​:h8(63)))
$ perl6 -v
This is Rakudo version 2016.07.1-137-gc8c27e9 built on MoarVM version 2016.07-16-g85b6537
implementing Perl 6.c.

@p6rt
Copy link
Author

p6rt commented Aug 30, 2016

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Sep 10, 2016

From @zoffixznet

Tests added Raku/roast@0cfcd4fb13

@p6rt
Copy link
Author

p6rt commented Sep 10, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant