forked from bytecodealliance/wit-bindgen
-
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.
feature(c#): Adds enum lifting and lowering (bytecodealliance#821)
* feature(c#): Adds enum lifting and lowering Signed-off-by: James Sturtevant <[email protected]> * use simplier version for conversion Signed-off-by: James Sturtevant <[email protected]> * Add Debug statement Signed-off-by: James Sturtevant <[email protected]> * Add correct qualifier Signed-off-by: James Sturtevant <[email protected]> --------- Signed-off-by: James Sturtevant <[email protected]>
- Loading branch information
1 parent
671c284
commit ce46cf4
Showing
2 changed files
with
39 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package foo:foo; | ||
|
||
interface enums { | ||
enum e1 { | ||
a, | ||
b, | ||
c | ||
} | ||
|
||
enum e2 { | ||
something, | ||
else | ||
} | ||
|
||
e1-arg: func(x: e1); | ||
e2-arg: func(x: e2); | ||
|
||
e1-ret: func(x: e1) -> e2; | ||
} | ||
|
||
world the-world { | ||
import enums; | ||
export enums; | ||
} |