Skip to content

Commit

Permalink
Tests for RT #126110 and RT #126115.
Browse files Browse the repository at this point in the history
  • Loading branch information
jnthn committed Sep 20, 2015
1 parent 7a34a79 commit 2fe8266
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion S02-names/is_default.t
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 108;
plan 110;

# L<S02/Variables Containing Undefined Values>

Expand Down Expand Up @@ -231,4 +231,10 @@ plan 108;
# RT #126104
lives-ok { EVAL 'my Any $a is default(3)' }, 'Default value that is subtype of constraint works fine';

# RT #126110
lives-ok { EVAL 'my $a is default(Mu); 1' }, 'Mu as a default value on an unconstrained Scalar works';

# RT #126115
lives-ok { EVAL 'my $a is default(Failure.new); 1' }, 'Failure.new as a default value on an unconstrained Scalar works';

# vim: ft=perl6

0 comments on commit 2fe8266

Please sign in to comment.