-
Notifications
You must be signed in to change notification settings - Fork 220
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't drop member mixins from multiple mixins
This fixes a bug where a member that sources traits from multiple mixins would have all but the last of those mixins dropped from its list, *if* it also happened to apply new traits locally.
- Loading branch information
1 parent
698745a
commit d0d4e07
Showing
5 changed files
with
72 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
.../software/amazon/smithy/model/loader/mixins/multiple-inheritance-with-introduction.smithy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
$version: "2" | ||
|
||
namespace com.example | ||
|
||
@mixin | ||
structure MixinA { | ||
@pattern("foo") | ||
@required | ||
member: String | ||
} | ||
|
||
@mixin | ||
structure MixinB { | ||
@pattern("bar") | ||
@internal | ||
member: String | ||
} | ||
|
||
structure FinalStructure with [MixinA, MixinB] { | ||
@pattern("baz") | ||
member: String | ||
} |