Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Be more specific about when to create container types.
jnthn++ for the patch.
  • Loading branch information
arnsholt committed Nov 25, 2015
1 parent 2e38ba6 commit 6313051
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Perl6/World.nqp
Expand Up @@ -1282,7 +1282,10 @@ class Perl6::World is HLL::World {
method build_container(%cont_info, $descriptor) {
my $cont;
my $cont_type := %cont_info<container_type>;
if nqp::istype($cont_type, self.find_symbol(['Scalar'])) {
if %cont_info<build_ast> {
$cont := $cont_type;
}
elsif nqp::istype($cont_type, self.find_symbol(['Scalar'])) {
$cont := nqp::create($cont_type);
nqp::bindattr($cont, %cont_info<container_base>, '$!descriptor', $descriptor);
if nqp::existskey(%cont_info, 'scalar_value') {
Expand Down

0 comments on commit 6313051

Please sign in to comment.