You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The error in the code is that '{' for the $y parameter is BEFORE the 'where' instead of after it. The error messages, however, show a different error:
<Zoffix> m: sub foo ( $x where { any <foo bar> }, $y { where 42 } ) { };
<camelia> rakudo-moar f1dd49: OUTPUT«===SORRY!===Expression needs parens to avoid gobbling blockat /tmp/zGERsntt2y:1------> sub foo ( $x where { any <foo bar> }⏏, $y { where 42 } ) { };Missing block (apparently claimed by expression)at /tmp/zGERsntt2y:1------>…»
<Zoffix> m: sub foo ( $x where { 42 }, $y { where 42 } ) { };
<camelia> rakudo-moar f1dd49: OUTPUT«===SORRY!===Expression needs parens to avoid gobbling blockat /tmp/gSOsYvX4uK:1------> sub foo ( $x where { 42 }⏏, $y { where 42 } ) { };Missing block (apparently claimed by expression)at /tmp/gSOsYvX4uK:1------> sub foo …»
p6rt
added
the
LTA
Less Than Awesome; typically an error message that could be better
label
Jan 5, 2020
Migrated from rt.perl.org#127205 (status was 'new')
Searchable as RT127205$
The text was updated successfully, but these errors were encountered: