forked from ferranbt/fastssz
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Mikhail Sherstennikov <[email protected]>
- Loading branch information
Showing
4 changed files
with
343 additions
and
19 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
eth2.0-spec-tests | ||
*.tar.gz | ||
*.tar.gz | ||
.idea |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package testcases | ||
|
||
//go:generate go run ../main.go --path generics.go --objs Test1,Test2 | ||
|
||
type Generic[T comparable] struct { | ||
Value T | ||
} | ||
|
||
type Wrapper struct { | ||
Generic[uint64] | ||
} | ||
|
||
type Test1 struct { | ||
G Wrapper | ||
} | ||
|
||
type Generic2[T any, F any] struct { | ||
Value1 T | ||
Value2 F | ||
} | ||
|
||
type Wrapper2 struct { | ||
Generic2[uint64, uint16] | ||
} | ||
|
||
type Test2 struct { | ||
G Wrapper2 | ||
} |
Oops, something went wrong.