Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Missed in last commit: add dumb example for .Foo::bar
Something more in-depth would be better, but this at least shows the
syntax of the op.
  • Loading branch information
Mouq committed Nov 29, 2014
1 parent cbcd9b0 commit 77dda07
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/Language/operators.pod
Expand Up @@ -300,6 +300,14 @@ Technically this is not an operator, but syntax special-cased in the compiler.
A class-qualified method call, used to call a method as defined in a parent
class or role, even after it has been redefined in the child class.
class Bar {
method baz { 42 }
}
class Foo does Bar {
method baz { "nope" }
}
say Foo.Bar::baz; # 42
=head1 Autoincrement Precedence
=head2 prefix C«++»
Expand Down

1 comment on commit 77dda07

@smls
Copy link
Contributor

@smls smls commented on 77dda07 Nov 29, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That code does not compile; you need to either
does Bar ---> is Bar
or
class Bar ---> role Bar

Please sign in to comment.