Skip to content

Commit

Permalink
Add test to cover RT #128516.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Dec 21, 2016
1 parent bcec811 commit df0b1a7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions S12-meta/classhow.t
@@ -0,0 +1,14 @@
use Test;

plan 1;

# RT #128516
{
my class Foo {
has $.a = Metamodel::ClassHOW.new_type(name => "Bar");
method comp { $!a.^compose }
}
my $obj = Foo.new;
lives-ok { $obj.comp; $obj.gist },
'Storing a meta-object in an attribute then composing/gisting works out';
}

0 comments on commit df0b1a7

Please sign in to comment.