Skip to content

Commit

Permalink
codegen: test: all_types: Also add a struct and an enum
Browse files Browse the repository at this point in the history
  • Loading branch information
dennis-hamester committed Nov 26, 2024
1 parent 22625ac commit 0f2f3cc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions codegen/test/all_types.aldrin
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,18 @@ service Service {
err = result<unit, unit>;
}

fn f46 @ 46 {
args = Struct;
ok = Struct;
err = Struct;
}

fn f47 @ 47 {
args = Enum;
ok = Enum;
err = Enum;
}

event e1 @ 1 = bool;
event e2 @ 2 = u8;
event e3 @ 3 = i8;
Expand Down Expand Up @@ -317,6 +329,8 @@ service Service {
event e43 @ 43 = lifetime;
event e44 @ 44 = unit;
event e45 @ 45 = result<unit, unit>;
event e46 @ 46 = Struct;
event e47 @ 47 = Enum;
}

struct Struct {
Expand Down Expand Up @@ -365,6 +379,8 @@ struct Struct {
f43 @ 43 = lifetime;
f44 @ 44 = unit;
f45 @ 45 = result<unit, unit>;
f46 @ 46 = box<Struct>;
f47 @ 47 = box<Enum>;
}

enum Enum {
Expand Down Expand Up @@ -413,4 +429,6 @@ enum Enum {
V43 @ 43 = lifetime;
V44 @ 44 = unit;
V45 @ 45 = result<unit, unit>;
V46 @ 46 = box<Struct>;
V47 @ 47 = box<Enum>;
}

0 comments on commit 0f2f3cc

Please sign in to comment.