Skip to content

Commit

Permalink
Fix CommonEnum.gist to return (Type) instead of Type() for undefined.
Browse files Browse the repository at this point in the history
  • Loading branch information
colomon committed Mar 5, 2013
1 parent 713c785 commit 2e5a010
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/CORE.setting
Expand Up @@ -1260,7 +1260,7 @@ my role CommonEnum {
method perl() {
defined(self) ?? (self.typename ~ "::" ~ self.key) !! self.typename
}
method gist() { defined(self) ?? self.key !! (self.typename ~ "()") }
method gist() { defined(self) ?? self.key !! ("(" ~ self.typename ~ ")") }
method key() { self.enums._index_to_key($!index) }
method value() { self.enums._index_to_value($!index) }
method kv() { self.key, self.value }
Expand Down

0 comments on commit 2e5a010

Please sign in to comment.