Skip to content

Commit

Permalink
Test synthetic numerals in colon pairs in :42foo format throw
Browse files Browse the repository at this point in the history
  • Loading branch information
zoffixznet committed Nov 26, 2016
1 parent 795fc1f commit b362890
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion S02-literals/pairs.t
Expand Up @@ -23,7 +23,7 @@ use Test;
# S02 lists ':a' as being equivlaent to a => 1, so
# the type of the value of that pair is Int, not Bool

plan 76;
plan 77;

sub f1n (:$a) { $a.WHAT.gist }
sub f1p ( $a) { $a.WHAT.gist }
Expand Down Expand Up @@ -175,4 +175,8 @@ sub f9 (:$bar!) { WHAT($bar) }
}
}

# RT #128821
throws-like ":7\x[308]a", X::Syntax::Malformed,
'synthetic numerals in colon pairs in :42foo format throw';

# vim: ft=perl6

0 comments on commit b362890

Please sign in to comment.