File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1525,11 +1525,11 @@ Recompiling changes a protocol's implementation
1525
1525
1526
1526
func use<T: MagicType>(item: T) { item.equip() }
1527
1527
1528
- Before the client is recompiled, the implementation of ``foo () `` used for `` S ``
1529
- instances can only be the default implementation, i.e. the one that prints
1530
- "Equipped". However, recompiling the client will result in the constrained
1531
- implementation being considered a "better" match for the protocol requirement,
1532
- thus changing the behavior of the program.
1528
+ Before the client is recompiled, the implementation of ``equip () `` used for
1529
+ `` Amulet `` instances can only be the default implementation, i.e. the one that
1530
+ prints "Equipped". However, recompiling the client will result in the
1531
+ constrained implementation being considered a "better" match for the protocol
1532
+ requirement, thus changing the behavior of the program.
1533
1533
1534
1534
This should never change the *meaning * of a program, since the default
1535
1535
implementation for a newly-added requirement should always be *correct. *
You can’t perform that action at this time.
0 commit comments