Skip to content

Commit

Permalink
add test for RT #116268
Browse files Browse the repository at this point in the history
  • Loading branch information
coke committed Jan 19, 2014
1 parent de89abd commit f344578
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion integration/weird-errors.t
Expand Up @@ -3,7 +3,7 @@ use Test;
BEGIN { @*INC.push: 't/spec/packages' };
use Test::Util;

plan 11;
plan 12;

# this used to segfault in rakudo
#?niecza skip 'todo'
Expand Down Expand Up @@ -77,3 +77,16 @@ lives_ok { Any .= (); CATCH { when X::Method::NotFound {1} } }, 'Typed, non-inte
}
}', "still able to parse statement after sub decl ending in newline");
}

# RT #116268
{
try EVAL '
proto bar {*}
multi bar ($baz) { "BAZ" }
class Blorg {
method do_stuff { bar "baz" }
}
Blorg.new.do_stuff
';
ok ~$! ~~ / 'Calling proto' .* 'will never work' /, "fails correctly";
}

0 comments on commit f344578

Please sign in to comment.