diff options
| author | Michael Williamson <mike@zwobble.org> | 2026-08-22 09:47:51 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2026-08-22 09:47:51 +0100 |
| commit | 8639d5524a49e1785df751cc3bda34a3cf130644 (patch) | |
| tree | cb0985f20c81e2dd38473320a74bbe42fe125d62 /examples/16-transient-0/src | |
| parent | 4112fcce6bd0a724d9d6847ba9d3b85ae9c7601f (diff) | |
Add generic struct test to examplemain
Diffstat (limited to 'examples/16-transient-0/src')
| -rw-r--r-- | examples/16-transient-0/src/data.hob | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/examples/16-transient-0/src/data.hob b/examples/16-transient-0/src/data.hob index df96916..ed93768 100644 --- a/examples/16-transient-0/src/data.hob +++ b/examples/16-transient-0/src/data.hob @@ -32,6 +32,16 @@ struct StructWithStruct { field c: Int32; } +struct GenericStruct[A, B] { + field a: A; + field b: B; +} + +struct StructWithGenericStruct { + field a: GenericStruct[Int32, String]; + field b: GenericStruct[Option[String], GenericStruct[Option[String], GenericStruct[String, String]]]; +} + struct StructWithList { field a: List[Int64]; field b: List[StructWithInt32]; |
