Skip to content

Commit a4d31a2

Browse files
committed
feat: adding async resource func test
Signed-off-by: Andrew Steurer <[email protected]>
1 parent e7a0dc0 commit a4d31a2

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

crates/test/src/cpp.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ impl LanguageMethods for Cpp {
5151
| "futures.wit"
5252
| "resources-with-futures.wit"
5353
| "resources-with-streams.wit"
54-
| "streams.wit" => true,
54+
| "streams.wit"
55+
| "async-resource-func.wit" => true,
5556
_ => false,
5657
}
5758
}

crates/test/src/csharp.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ impl LanguageMethods for Csharp {
4747
| "streams.wit"
4848
| "error-context.wit"
4949
| "resource-fallible-constructor.wit"
50+
| "async-resource-func.wit"
5051
)
5152
}
5253

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package foo:bar;
2+
3+
world bindings {
4+
import types;
5+
}
6+
7+
interface types {
8+
resource descriptor {
9+
test: async func(
10+
arg1: string,
11+
arg2: list<s32>,
12+
);
13+
}
14+
}

0 commit comments

Comments
 (0)