Skip to content

Commit

Permalink
Moving test for RT #77158 to S06-signature/types.t
Browse files Browse the repository at this point in the history
it lived in S02-types/77158.t which was not included in t/spectest.data
test was added with b4fc0fe
  • Loading branch information
usev6 committed Sep 25, 2014
1 parent 55c1fc2 commit 5e95e5d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
6 changes: 0 additions & 6 deletions S02-types/77158.t

This file was deleted.

10 changes: 9 additions & 1 deletion S06-signature/types.t
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
use v6;
use Test;

plan 6;
plan 8;

sub f($x) returns Int { return $x };

Expand All @@ -16,4 +16,12 @@ sub g($x) returns Int { $x };
lives_ok { g(3) }, 'type check allows good implicit return';
dies_ok { g('m') }, 'type check forbids bad implicitreturn';

#RT #77158
{
ok :(Int).perl eq ':(Int)',
"RT #77158 Doing .perl on an :(Int)";
ok :(Array of Int).perl eq ':(Array[Int])',
"RT #77158 Doing .perl on an :(Array of Int)";
}

# vim: ft=perl6

0 comments on commit 5e95e5d

Please sign in to comment.