Skip to content

Commit

Permalink
Merge pull request #546 from lukasvalle/master
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Jun 2, 2019
2 parents dd9a661 + bd78c46 commit 827385b
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion S10-packages/precompilation.t
Expand Up @@ -3,7 +3,7 @@ use Test;
use lib $?FILE.IO.parent(2).add("packages/Test-Helpers");
use Test::Util;

plan 49;
plan 51;

my @*MODULES; # needed for calling CompUnit::Repository::need directly

Expand Down Expand Up @@ -289,3 +289,23 @@ with make-temp-dir() -> $dir {
'no funny business with precompiled string strands (\qq[$_])';
}
}
# GH rakudo issue #1219
with make-temp-dir() -> $dir {
$dir.add('Simple1219.pm6').spurt:
class A {
method a() is DEPRECATED<b> {
}
}
;
for ^2 { # do two runs: 1 x without pre-existing precomp + 1 x with
is_run 'use lib \qq[$dir.absolute().perl()]; use Simple1219; print A.a()',
{
out => '',
err => { $_ ~~ / 'deprecated code'/ },
status => { $_ == 0 },
},
'is DEPRECATED does work on Routines in precomped modules';
}
}

0 comments on commit 827385b

Please sign in to comment.