Skip to content

Commit

Permalink
Cover :D crash in modules
Browse files Browse the repository at this point in the history
Closes rakudo/rakudo#2345 R#2345
  • Loading branch information
zoffixznet committed Oct 18, 2018
1 parent 529e4e0 commit 8d759ab
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion MISC/bug-coverage.t
Expand Up @@ -6,7 +6,7 @@ use Test::Util;
# This file is for random bugs that don't really fit well in other places.
# Feel free to move the tests to more appropriate places.

plan 14;
plan 15;

# https://github.com/rakudo/rakudo/issues/2280
is-deeply (11**5, */-2 … 0)[31], <-161051/2147483648>,
Expand Down Expand Up @@ -365,4 +365,11 @@ group-of 2 => 'negative offset in JIT lables errors' => {
, {:out<pass>, :err(''), :0status}, 'tokens and subs';
}

{ # https://github.com/rakudo/rakudo/issues/2345
(my $lib := make-temp-dir).add('Foo.pm6').spurt: $ = IO::Path:D;
is_run use Foo; -> --> IO::Path:D {".".IO}(); print 'pass',
:compiler-args['-I', $lib.absolute], {:out<pass>, :err(''), :0status},
'no weird type check issues with modules';
}

# vim: expandtab shiftwidth=4 ft=perl6

0 comments on commit 8d759ab

Please sign in to comment.