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 assigning to an attribute of a type object in Rakudo #1218
Comments
From @masakRakudo a948cae: $ perl6 -e 'class A { has Should probably be a readonly-related error or something instead |
From @kylehaThis is an automatically generated mail to inform you that tests are now available in t/spec/S12-attributes/instance.t commit 93c0f5aef4ded4abcb4397deb630eba51f6f412e [t/spec] Test for RT #68370 Inline Patchdiff --git a/t/spec/S12-attributes/instance.t b/t/spec/S12-attributes/instance.t
index aa9be08..18bebc1 100644
--- a/t/spec/S12-attributes/instance.t
+++ b/t/spec/S12-attributes/instance.t
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 128;
+plan 129;
=begin pod
@@ -531,4 +531,16 @@ is eval('Foo7e.new.attr'), 42, "default attribute value (1)";
is C.new.s, 6, "Test class include another class which inherited from same role";
}
+# RT #68370
+{
+ class RT68370 {
+ has $!a;
+ method rt68370 { $!a = 68370 }
+ }
+
+ #?rakudo todo 'RT #68370 -- Null PMC Access in getprop()'
+ dies_ok { RT68370.rt68370() },
+ 'dies: modify instance attribute via class method call';
+}
+
# vim: ft=perl6 |
The RT System itself - Status changed from 'new' to 'open' |
From @jnthnOn Mon Aug 10 03:47:23 2009, masak wrote:
This is a dupe of another ticket I just resolved (though this ticket Type objects do not have state, but you tried to access attribute $!a Thanks, Jonathan |
@jnthn - Status changed from 'open' to 'resolved' |
Migrated from rt.perl.org#68370 (status was 'resolved')
Searchable as RT68370$
The text was updated successfully, but these errors were encountered: