Created
August 22, 2012 16:27
-
-
Save softmoth/3427205 to your computer and use it in GitHub Desktop.
nom infinite loop during compile
This file contains hidden or 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
| class Foo { | |
| has $.foo; | |
| method foo { | |
| # Change this to $!foo, and compilation errors appropriately: | |
| # "Cannot assign to a readonly variable or a value" | |
| return $.foo; | |
| } | |
| } | |
| my Foo $f .= new(); | |
| $f.foo = 1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment