Permalink
Browse files

add test for RT #117163

  • Loading branch information...
1 parent 62e02f8 commit 9c0a20d855d633c159e4ef013f65b51bde3087cb @coke coke committed Jan 15, 2014
Showing with 7 additions and 1 deletion.
  1. +7 −1 S12-class/augment-supersede.t
@@ -2,7 +2,7 @@ use v6;
use Test;
-plan 11;
+plan 12;
# L<S12/"Open vs Closed Classes"/"Otherwise you'll get a class redefinition error.">
@@ -93,4 +93,10 @@ eval_lives_ok q[
}, 'integers produced from ranges have augmented methods';
}
+# RT #117163
+{
+ try EVAL 'class F { also is F; }';
+ ok ~$! ~~ / 'cannot inherit from itself' /, "used to crash rakudo";
+}
+
# vim: ft=perl6

0 comments on commit 9c0a20d

Please sign in to comment.