Skip to content

Commit 676e894

Browse files
committed
mentioned function stubs and super
1 parent 3e9c566 commit 676e894

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/reference.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -639,6 +639,10 @@ A few examples of using `super` in different ways:
639639
-- super as a value is equal to the parent class:
640640
assert super == ParentClass
641641

642+
`super` can also be used on left side of a [Function Stub](#function_stubs).
643+
The only major difference is that instead of the resulting function being bound
644+
to the value of `super`, it is bound to `self`.
645+
642646
### Types
643647

644648
Every instance of a class carries its type with it. This is stored in the

0 commit comments

Comments
 (0)