Skip to content

Instantly share code, notes, and snippets.

@pdcawley
Created August 10, 2009 11:14
Show Gist options
  • Save pdcawley/165136 to your computer and use it in GitHub Desktop.
Save pdcawley/165136 to your computer and use it in GitHub Desktop.
#!/usr/bin/perl
use feature ':5.10';
use MooseX::Declare;
class Foo {
method _test { 1 }
method bar ( $f where { _test(')}') } ) {
$f
}
}
say Foo->new->bar('22');
# Blows up with:
# Runaway '{}' in parameter near '{ _test(')}')' at /usr/local/share/perl/5.10.0/MooseX/Method/Signatures/Meta/Method.pm line 160
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment