Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Avoid returning default value, so not to sink it.
Fixes is default(Failure.new).
  • Loading branch information
jnthn committed Sep 20, 2015
1 parent c3ecd46 commit 97e47a5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Perl6/Metamodel/ContainerDescriptor.nqp
Expand Up @@ -19,10 +19,10 @@ class Perl6::Metamodel::ContainerDescriptor {
method default() { $!default }
method dynamic() { $!dynamic }

method set_of($of) { $!of := $of }
method set_rw($rw) { $!rw := $rw }
method set_default($default) { $!default := $default }
method set_dynamic($dynamic) { $!dynamic := $dynamic }
method set_of($of) { $!of := $of; self }
method set_rw($rw) { $!rw := $rw; self }
method set_default($default) { $!default := $default; self }
method set_dynamic($dynamic) { $!dynamic := $dynamic; self }

method is_generic() {
$!of.HOW.archetypes.generic
Expand Down

0 comments on commit 97e47a5

Please sign in to comment.