Created
August 10, 2009 11:14
-
-
Save pdcawley/165136 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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