abouttreesummaryrefslogcommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test2.toc8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/test2.toc b/test/test2.toc
index 6e8d4f8..1447c8f 100644
--- a/test/test2.toc
+++ b/test/test2.toc
@@ -35,6 +35,11 @@ struct S1<T> {
}
}
+struct S2 {
+ abc(): S2 { }
+ xyz(): S2 { }
+}
+
func generic1<A>(a1 : A, a2 : A) : A {
return a1 + a2;
}
@@ -57,5 +62,8 @@ func main(argc : int, argv : char**) : int {
generic1<int>(1, 2);
generic1<double>(3.4, 5.6);
+ var s: S2;
+ s.abc().xyz();
+
return 0;
} \ No newline at end of file