Created
March 8, 2015 14:18
-
-
Save Tux/623592360badd619dacf 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
use v6; | |
class C { | |
has Str $.s is rw = "Default"; | |
multi method new (Str $x) { $.s = $x; } | |
} | |
C.new.s.say; | |
C.new("foo").s.say; | |
=> | |
Default | |
Cannot look up attributes in a type object | |
in method s at src/gen/m-CORE.setting:3948 | |
in method new at T.pl:7 | |
in block <unit> at T.pl:11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment