Permalink
Browse files

[t/spec] Added test for RT 77010 use hypers with local scoped user de…

…fined operators.

git-svn-id: http://svn.pugscode.org/pugs@31921 c213334d-75ef-0310-aa23-eaa082d1ae64
  • Loading branch information...
1 parent ca57f84 commit bf4ca713e6388395f2ba0518a2f3c24cb00f61dd radus committed Aug 7, 2010
Showing with 8 additions and 0 deletions.
  1. +8 −0 S03-metaops/hyper.t
View
@@ -708,6 +708,14 @@ my @e;
is ~@r, ~@e, 'dwimmy hyper extends lists ending with * by copying the last element';
}
+# RT #77010
+
+#?rakudo skip 'RT 77010 - use hypers with local scoped user-defined operators'
+{
+ sub infix:<+++>($a, $b) { ($a + $b) div 2 };
+ eval_lives_ok '10 >>+++<< 14', 'can use hypers with local scoped user-defined operators';
+}
+
done_testing;
# vim: ft=perl6

0 comments on commit bf4ca71

Please sign in to comment.