Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix test failing for the wrong reason
priming-fails-bind-ok(sub (Int :$a!) { }, '$a', Int, :a); should actually
fail to find a bind error since Bool is specced to be an enum with base type
Int, IOW Bool ~~ Int.
Change it, so it will still pass, once Bool is a proper enum.
  • Loading branch information
niner committed Oct 3, 2015
1 parent 7ce4a38 commit ecb2fb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion S06-currying/named.t
Expand Up @@ -61,7 +61,7 @@ is-primed-sig(sub (:$a! is copy where { True }) { }, :(:$a? is copy), :a);
is-primed-sig(sub (:$a is copy where { True } = 4) { }, :(:$a is copy), :a);
is-primed-sig(sub (Int :$a! where { True }) { }, :(Int :$a?), :a(1));

priming-fails-bind-ok(sub (Int :$a!) { }, '$a', Int, :a);
priming-fails-bind-ok(sub (Str :$a!) { }, '$a', Str, :a);



Expand Down

0 comments on commit ecb2fb7

Please sign in to comment.