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
Null PMC access when accessing a non-value of an enum in Rakudo #1091
Comments
From @masak<masak> rakudo: enum A <b>; say A::c |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S12-enums/thorough.t commit 60bdcc42fd6b09bcd4d19278cb2f8be3a79d430f [t/spec] Test for RT #66886 Inline Patchdiff --git a/t/spec/S12-enums/thorough.t b/t/spec/S12-enums/thorough.t
index bf432aa..bb13abf 100644
--- a/t/spec/S12-enums/thorough.t
+++ b/t/spec/S12-enums/thorough.t
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 69;
+plan 70;
=begin description
@@ -101,4 +101,11 @@ ok Bool::True.perl ~~/^ 'Bool::True'/, 'Bool::True.perl';
lives_ok { $foo = Negation::isnt }, 'simple assignment from enum';
}
+# RT #66886
+{
+ enum RT66886 <b>;
+ #?rakudo todo 'RT #66886'
+ dies_ok { RT66886::c }, 'accessing non-value of enum dies proper-like';
+}
+
# vim: ft=perl6 |
The RT System itself - Status changed from 'new' to 'open' |
From @jnthnOn Tue Jun 23 03:08:44 2009, masak wrote:
Resolved in git 33e3839 and unfudged tests. Thanks, Jonathan |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#66886 (status was 'resolved')
Searchable as RT66886$
The text was updated successfully, but these errors were encountered: