I merged the PR. Thank you for you patience.
「testneeded」
See
https://github.com/rakudo/rakudo/commit/c7a82d451d6506bda9422813fe72974575e473df
You can see some code examples here:
https://github.com/rakudo/rakudo/pull/565#issuecomment-334965048
Maybe these can be turned into tests easily.
On
As a status update: All code snippet in this ticket die now with
X::Syntax::Malformed and complain about 'Malformed my' during compilation (I
think, it was fixed with rakudo commit e1e03e6ed5):
$ perl6-m -e 'my Str where "foo" $test'
===SORRY!=== Error while compiling -e
Malformed my
at -e:1
# New Ticket Created by Alex Jakimenko
# Please include the string: [perl #125902]
# in the subject line of all future correspondence about this issue.
# URL: https://rt.perl.org/Ticket/Display.html?id=125902
Code:
my Str where 'foo' $test;
Result:
===SORRY!===
Type 'Str' is not declared.