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

Something with ::C generates Null PMC accesses in Rakudo #882

Closed
p6rt opened this issue Apr 11, 2009 · 5 comments
Closed

Something with ::C generates Null PMC accesses in Rakudo #882

p6rt opened this issue Apr 11, 2009 · 5 comments

Comments

@p6rt
Copy link

p6rt commented Apr 11, 2009

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

Searchable as RT64642$

@p6rt
Copy link
Author

p6rt commented Apr 11, 2009

From @masak

<skids> rakudo​: class D is :​:C {}; class C is also { };
<p6eval> rakudo 07ed75​: OUTPUT«Null PMC access in get_string() [...]

This bug ticket was written away from my full bug reporting toolkit.
Feel free to minimize the example (the "C is also" declaration might
be necessary, or might not be), and/or change the ticket summary.

@p6rt
Copy link
Author

p6rt commented Jul 30, 2009

From @kyleha

This is an automatically generated mail to inform you that tests are now available in t/spec/S12-class/inheritance.t

commit 47d8157ad8d75cc99f108a8c63a42e39ae49f6e1
Author​: kyle <kyle@​c213334d-75ef-0310-aa23-eaa082d1ae64>
Date​: Thu Jul 30 18​:53​:48 2009 +0000

  [t/spec] Test for RT #​64642
 
  git-svn-id​: http://svn.pugscode.org/pugs@&#8203;27819 c213334d-75ef-0310-aa23-eaa082d1ae64

Inline Patch
diff --git a/t/spec/S12-class/inheritance.t b/t/spec/S12-class/inheritance.t
index c0bd1f3..ed53950 100644
--- a/t/spec/S12-class/inheritance.t
+++ b/t/spec/S12-class/inheritance.t
@@ -2,7 +2,7 @@ use v6;
 
 use Test;
 
-plan 35;
+plan 36;
 
 # L<S12/Classes/An "isa" is just a trait that happens to be another class>
 
@@ -132,3 +132,6 @@ is(Y.new.k(), 'X', 'inherited method dispatch works inside another class with sa
 
 # Make sure inheritnace from Object works (got broken in Rakudo once).
 eval_lives_ok 'class NotAny is Object { }; NotAny.new', 'inheritance from Object works';
+
+#?rakudo todo 'trying to inherit from a non-existent class'
+eval_dies_ok 'class RT64642 is ::Nowhere {}', 'dies: class D is ::C {}';

@p6rt
Copy link
Author

p6rt commented Jul 30, 2009

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

@p6rt
Copy link
Author

p6rt commented Jan 22, 2011

From @coke

On Thu Jul 30 11​:55​:42 2009, KyleHa wrote​:

This is an automatically generated mail to inform you that tests are
now available in t/spec/S12-class/inheritance.t

commit 47d8157ad8d75cc99f108a8c63a42e39ae49f6e1
Author​: kyle <kyle@​c213334d-75ef-0310-aa23-eaa082d1ae64>
Date​: Thu Jul 30 18​:53​:48 2009 +0000

\[t/spec\] Test for RT #&#8203;64642

git\-svn\-id&#8203;: http://svn.pugscode.org/pugs@&#8203;27819 c213334d\-75ef\-0310\-

aa23-eaa082d1ae64

diff --git a/t/spec/S12-class/inheritance.t b/t/spec/S12-
class/inheritance.t
index c0bd1f3..ed53950 100644
--- a/t/spec/S12-class/inheritance.t
+++ b/t/spec/S12-class/inheritance.t
@​@​ -2,7 +2,7 @​@​ use v6;

use Test;

-plan 35;
+plan 36;

# L<S12/Classes/An "isa" is just a trait that happens to be another
class>

@​@​ -132,3 +132,6 @​@​ is(Y.new.k(), 'X', 'inherited method dispatch
works inside another class with sa

# Make sure inheritnace from Object works (got broken in Rakudo
once).
eval_lives_ok 'class NotAny is Object { }; NotAny.new', 'inheritance
from Object works';
+
+#?rakudo todo 'trying to inherit from a non-existent class'
+eval_dies_ok 'class RT64642 is :​:Nowhere {}', 'dies​: class D is :​:C
{}';

This test is passing. Closing ticket.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Jan 22, 2011

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

@p6rt p6rt closed this as completed Jan 22, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant