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
Declaring enums with Bools, IntStrs and maybe other things ( enum Foo (:Bar(1), :Baz(True) )) #5194
Comments
From @AlexDanielCode: Result: <jnthn> That's a crappy error :) This bug is somewhat similar to https://rt-archive.perl.org/perl6/Ticket/Display.html?id=126987 |
From @zoffixznetStill present today on rakudo 89470a: <Zoffix> m: enum Foo <<:Bar(1) :Baz>> |
From @AlexDanielActually, it's not about the error message. The whole thing can be golfed to this: enum Foo (:Bar(1), :Baz(True)) And the error happens because: Code: Result: Or something like that. So it is “istype” of something but you can't rebless it. The type is checked here: Rebless is here: IRC logs: I really don't know what to do about it. You cannot just .Int it because stringy enums exist (enum Foo (:Bar("foo")); say Bar). It's weird. On 2016-07-10 07:01:59, cpan@zoffix.com wrote:
|
From @AlexDanielZoffix++ pointed out that there is a problem with IntStr also: Code: Result: On 2017-10-07 17:16:30, alex.jakimenko@gmail.com wrote:
|
From @AlexDanielI am pretty sure that this commit is relevant to this issue: rakudo/rakudo@fc52143 On 2017-10-07 17:20:37, alex.jakimenko@gmail.com wrote:
|
Migrated from rt.perl.org#127775 (status was 'new')
Searchable as RT127775$
The text was updated successfully, but these errors were encountered: