# New Ticket Created by  Alex Jakimenko 
# Please include the string:  [perl #125504]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=125504 >


Code:
my Str $a = 'x';
say $a{'hello'};

Error:
postcircumfix:<{ }> not defined for type Str
  in block <unit> at ./test.pl:3

The problem is that there is no { } in the code.

Sure, <> is converted to {' '} that's why you get that in the error
message, but it does not justify a LTA error message.

Also, why this is not caught during compile-time? It looks like there is
enough information to do that.

Reply via email to