Add example of a resource with hidden immutable data

This commit is contained in:
2025-01-15 21:37:46 +10:30
parent 90dc149f6a
commit f4f736669b
4 changed files with 63 additions and 15 deletions

View File

@@ -1,10 +1,19 @@
package my:project;
world test {
interface types {
resource testresource {
hello: func();
}
record record-string {
hello-string: string,
}
}
world test {
use types.{testresource, record-string};
import hello: func(hello-string: record-string);
export greet: func(hello-string: record-string);
export greet: func(hello-string: record-string, input-resource: testresource);
}