summaryrefslogtreecommitdiff
path: root/test/pkgtrait.myr
diff options
context:
space:
mode:
Diffstat (limited to 'test/pkgtrait.myr')
-rw-r--r--test/pkgtrait.myr13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/pkgtrait.myr b/test/pkgtrait.myr
new file mode 100644
index 0000000..7825937
--- /dev/null
+++ b/test/pkgtrait.myr
@@ -0,0 +1,13 @@
+use std
+use regex
+
+impl disposable regex.regex# =
+ __dispose__ = {r
+ regex.free(r)
+ }
+;;
+
+const main = {
+ var auto r : regex.regex#
+ r = std.try(regex.compile(".*"))
+}