summaryrefslogtreecommitdiff
path: root/test/pkgtrait.myr
blob: 40eb5944c82b2826c97cd5d6af8712ba73f7f753 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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(".*"))
	std.exit(42)
}