Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

RT #83992, proper error message for infix in term position

  • Loading branch information...
commit ab9c613ee12af126c44fe8b1724e4c16483d5831 1 parent c72531a
@moritz moritz authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  S32-exceptions/misc.t
View
2  S32-exceptions/misc.t
@@ -127,6 +127,8 @@ throws_like '@a', X::Undeclared, symbol => '@a';
throws_like 'augment class Any { }', X::Syntax::Augment::WithoutMonkeyTyping;
throws_like 'use MONKEY_TYPING; augment role Positional { }', X::Syntax::Augment::Role;
throws_like 'sub postbla:sym<foo>() { }', X::Syntax::Extension::Category, category => 'postbla';
+# RT #83992
+throws_like 'my @a = 1, => 2', X::Syntax::InfixInTermPosition, infix => '=>';
throws_like 'sub f(:in(:$in)) { }', X::Signature::NameClash, name => 'in';
throws_like 'my $foo does &Int', X::Does::TypeObject;
throws_like 'my $foo does &Int, &Bool', X::Does::TypeObject;
Please sign in to comment.
Something went wrong with that request. Please try again.