aboutsummaryrefslogtreecommitdiff
path: root/examples/26-effect-handler-nested/src
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2024-12-10 23:22:20 +0000
committerMichael Williamson <mike@zwobble.org>2024-12-10 23:22:56 +0000
commite0bbcd3fb41b54f8d72bf2d08a592def2e44d3b7 (patch)
tree793329284914e5bdd1aeae1d59379f418e62307e /examples/26-effect-handler-nested/src
parenta3d55321537a29401fe487e040e3b6ebbd04fc3e (diff)
Add disabled example for struct positional fields
Diffstat (limited to 'examples/26-effect-handler-nested/src')
-rw-r--r--examples/26-effect-handler-nested/src/Example.shed42
1 files changed, 0 insertions, 42 deletions
diff --git a/examples/26-effect-handler-nested/src/Example.shed b/examples/26-effect-handler-nested/src/Example.shed
deleted file mode 100644
index 2a8e4781..00000000
--- a/examples/26-effect-handler-nested/src/Example.shed
+++ /dev/null
@@ -1,42 +0,0 @@
-effect A {
- fun a() -> Unit;
-}
-
-effect B {
- fun b() -> Unit;
-}
-
-pub fun main() ! Io -> Unit {
- try {
- A.a!();
-
- try {
- A.a!();
-
- try {
- A.a!();
- B.b!();
- A.a!();
- } handle B {
- fun b() {
- print!("b\n");
- resume;
- }
- }
-
- A.a!();
- } handle A {
- fun a() {
- print!("a inner\n");
- resume;
- }
- }
-
- A.a!();
- } handle A {
- fun a() {
- print!("a outer\n");
- resume;
- }
- }
-}