File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -590,9 +590,11 @@ One area where inheritance linearization is especially important and perhaps not
590
590
Inheriting Different Kinds of Members of the Same Name
591
591
======================================================
592
592
593
- It is an error when any of the following pairs in a contract have the same name due to inheritance:
594
- - a function and a modifier
595
- - a function and an event
596
- - an event and a modifier
597
-
598
- As an exception, a state variable getter can override an external function.
593
+ The only situations where, due to inheritance, a contract may contain multiple definitions sharing
594
+ the same name are:
595
+
596
+ - Overloading of functions.
597
+ - Overriding of virtual functions.
598
+ - Overriding of external virtual functions by state variable getters.
599
+ - Overriding of virtual modifiers.
600
+ - Overloading of events.
You can’t perform that action at this time.
0 commit comments