shithub: mc

Download patch

ref: da5f858f60c9a8d52add2f60845483be2f4b416e
parent: e02fa54dc9605611a5a5699c4af83a347a411848
author: Ori Bernstein <[email protected]>
date: Fri Oct 11 08:21:23 EDT 2013

Add a test for imported union types within structs.

    Right now it fails; we never unify when we should have.

--- /dev/null
+++ b/test/stdopt-struct.myr
@@ -1,0 +1,9 @@
+use std
+
+type t = struct
+	next	: std.option(int)
+;;
+
+const main = {
+	-> 42
+}
--- a/test/tests
+++ b/test/tests
@@ -73,6 +73,7 @@
 B stdopt-some	E	42
 B stdopt-none	E	42
 B stdopt-mk	E	42
+B stdopt-struct	E	42
 B sizeof	E	4
 B gsizeof	E	5
 B mkunion	E	0