Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Track disappearence of Cool.eval and eval()
  • Loading branch information
lizmat committed Jul 9, 2014
1 parent d9f950a commit 6e71b0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 30 deletions.
30 changes: 1 addition & 29 deletions S02-types/deprecations.t
Expand Up @@ -2,7 +2,7 @@ use v6;

use Test;

plan 38;
plan 36;

# currently deprecated core features

Expand Down Expand Up @@ -375,34 +375,6 @@ Please use the :exists adverb with postcircumfix:<\{ }> instead.
TEXT
} #2
# eval() and .eval
#?niecza skip 'is DEPRECATED NYI'
#?pugs skip 'is DEPRECATED NYI'
#?rakudo.jvm skip 'tracebacks in deprecations'
{
$line = $?LINE; eval("1+1");
eval("1+1");
is Deprecation.report, qq:to/TEXT/.chop.subst(/\r/, '', :g), 'deprecation eval("1+1")';
Saw 1 call to deprecated code during execution.
================================================================================
Sub eval (from GLOBAL) called at:
$*PROGRAM, lines $line,{$line + 1}
Please use 'EVAL' instead.
--------------------------------------------------------------------------------
TEXT
$line = $?LINE; "1+1".eval;
"1+1".eval;
is Deprecation.report, qq:to/TEXT/.chop.subst(/\r/, '', :g), 'deprecation "1+1".eval';
Saw 1 call to deprecated code during execution.
================================================================================
Method eval (from Cool) called at:
$*PROGRAM, lines $line,{$line + 1}
Please use 'EVAL' instead.
--------------------------------------------------------------------------------
TEXT
} #2
# $*OS
#?niecza skip 'is DEPRECATED NYI'
#?pugs skip 'is DEPRECATED NYI'
Expand Down
2 changes: 1 addition & 1 deletion S32-exceptions/misc.t
Expand Up @@ -157,7 +157,7 @@ throws_like 'sub f(*@a, $b?) { }', X::Parameter::WrongOrder,
#?rakudo todo 'parsing regression'
throws_like '#`', X::Syntax::Comment::Embedded;
# RT #71814
throws_like "=begin\n", X::Syntax::Pod::BeginWithoutIdentifier, line => 1, filename => rx/eval/;
throws_like "=begin\n", X::Syntax::Pod::BeginWithoutIdentifier, line => 1, filename => rx/EVAL/;

for <
$ @ % &
Expand Down

0 comments on commit 6e71b0b

Please sign in to comment.