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

Null PMC access when declaring variable with a subtype with a '::' in it in Rakudo #2299

Closed
p6rt opened this issue Dec 18, 2010 · 5 comments
Closed
Labels

Comments

@p6rt
Copy link

p6rt commented Dec 18, 2010

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

Searchable as RT80930$

@p6rt
Copy link
Author

p6rt commented Dec 18, 2010

From @masak

<masak> rakudo​: subset Foo​::Bar of Int where { $_ %% 2 }; my Foo​::Bar $i
<p6eval> rakudo a95c1d​: OUTPUT«Null PMC access in type() [...]
<masak> rakudo​: subset Foo​::Bar of Int where { $_ %% 2 }; say "alive"
<p6eval> rakudo a95c1d​: OUTPUT«alive␤»
* masak does a dip into RT for prior art
* masak submits rakudobug
<masak> rakudo​: subset A of Int where { $_ %% 2 }; my A $a; say "alive"
<p6eval> rakudo a95c1d​: OUTPUT«alive␤»
<masak> rakudo​: subset Foo​::Bar where { $_ %% 2 }; my Foo​::Bar $a
<p6eval> rakudo a95c1d​: OUTPUT«Null PMC access in type() [...]
<jnthn> :/
<masak> just narrowing down the error. :)
<jnthn> What on earth is it doing there...
<masak> it's the :​: that causes it, it seems.

@p6rt
Copy link
Author

p6rt commented Dec 23, 2010

From @kyleha

This is an automatically generated mail to inform you that tests are now available in S02-polymorphic_types/subset.t

commit 9d5a903aeca75dcac306ebdb734a42f386c71306
Author​: Kyle Hasselbacher <kyleha@​gmail.com>
Date​: Thu Dec 23 10​:29​:25 2010 -0600

  [subset.t] Test for RT 80930

Inline Patch
diff --git a/S02-polymorphic_types/subset.t b/S02-polymorphic_types/subset.t
index 7d21f7d..e3da89f 100644
--- a/S02-polymorphic_types/subset.t
+++ b/S02-polymorphic_types/subset.t
@@ -164,4 +164,10 @@ dies_ok { my Digit $x = 3.1 },
     ok 1 ~~ aboveLexVarLimit, 'can use subset that depends on lexical variable (1)';
     nok -1 ~~ aboveLexVarLimit, 'can use subset that depends on lexical variable (2)';
 }
+
+subset Bug::RT80930 of Int where { $_ %% 2 };
+#?rakudo todo 'RT 80930'
+lives_ok { my Bug::RT80930 $rt80930 }, 'subset with "::" in the name';
+
+
 # vim: ft=perl6

@p6rt
Copy link
Author

p6rt commented Dec 23, 2010

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

@p6rt
Copy link
Author

p6rt commented Feb 1, 2012

From @coke

On Thu Dec 23 08​:30​:13 2010, KyleHa wrote​:

This is an automatically generated mail to inform you that tests are
now available in S02-polymorphic_types/subset.t

commit 9d5a903aeca75dcac306ebdb734a42f386c71306
Author​: Kyle Hasselbacher <kyleha@​gmail.com>
Date​: Thu Dec 23 10​:29​:25 2010 -0600

\[subset\.t\] Test for RT 80930

diff --git a/S02-polymorphic_types/subset.t b/S02-
polymorphic_types/subset.t
index 7d21f7d..e3da89f 100644
--- a/S02-polymorphic_types/subset.t
+++ b/S02-polymorphic_types/subset.t
@​@​ -164,4 +164,10 @​@​ dies_ok { my Digit $x = 3.1 },
ok 1 ~~ aboveLexVarLimit, 'can use subset that depends on lexical
variable (1)';
nok -1 ~~ aboveLexVarLimit, 'can use subset that depends on
lexical variable (2)';
}
+
+subset Bug​::RT80930 of Int where { $_ %% 2 };
+#?rakudo todo 'RT 80930'
+lives_ok { my Bug​::RT80930 $rt80930 }, 'subset with "​::" in the
name';
+
+
# vim​: ft=perl6

Tests are in S02-types/subset.t now, and they are passing.

Closing ticket.

--
Will "Coke" Coleda

@p6rt
Copy link
Author

p6rt commented Feb 1, 2012

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

@p6rt p6rt closed this as completed Feb 1, 2012
@p6rt p6rt added the Bug label Jan 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant