|
@@ -191,8 +191,9 @@ One benefit is that it allows an interface to evolve by adding an associated
|
|
|
type, without having to then modify all implementations of that interface.
|
|
type, without having to then modify all implementations of that interface.
|
|
|
|
|
|
|
|
One concern is this might be a little more complicated in the presence of method
|
|
One concern is this might be a little more complicated in the presence of method
|
|
|
-overloads with [default implementations](interface-defaults), since it might not
|
|
|
|
|
-be clear how they should match up, as in this example:
|
|
|
|
|
|
|
+overloads with
|
|
|
|
|
+[default implementations](/docs/design/generics/details.md#interface-defaults),
|
|
|
|
|
+since it might not be clear how they should match up, as in this example:
|
|
|
|
|
|
|
|
```
|
|
```
|
|
|
interface Has2OverloadsWithDefaults {
|
|
interface Has2OverloadsWithDefaults {
|