File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -1674,7 +1674,10 @@ $(H3 $(LNAME2 super, super))
1674
1674
$(P $(D super) is identical to $(D this), except that it is
1675
1675
cast to $(D this)'s base class.
1676
1676
It is an error if there is no base class.
1677
- It is an error to use the $(D super) reference outside a non-static class member function.
1677
+ It is an error to use the $(D super) reference outside a non-static class member function,
1678
+ or inside a member function of a class without a base class.
1679
+ (The only `extern(D)` class without a base class is `Object`,
1680
+ however, note that `extern(C++)` classes have no base class unless specified.)
1678
1681
If a member function is called with an explicit reference
1679
1682
to $(D super), a non-virtual call is made.
1680
1683
)
You can’t perform that action at this time.
0 commit comments