Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add test for RT #116268

  • Loading branch information...
commit f344578a658ebc53f1a01a3b085f60c650754285 1 parent de89abd
@coke coke authored
Showing with 14 additions and 1 deletion.
  1. +14 −1 integration/weird-errors.t
View
15 integration/weird-errors.t
@@ -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'
@@ -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";
+}
Please sign in to comment.
Something went wrong with that request. Please try again.