]> gitweb.ps.run Git - toc/blobdiff - test/test2.toc
example and todo
[toc] / test / test2.toc
index 6e8d4f885b2363c99dba37751829a4f56c0fa772..1447c8f3ea5cc70e961fb74d4ce492f1e465086e 100644 (file)
@@ -35,6 +35,11 @@ struct S1<T> {
   }\r
 }\r
 \r
+struct S2 {\r
+  abc(): S2 { }\r
+  xyz(): S2 { }\r
+}\r
+\r
 func generic1<A>(a1 : A, a2 : A) : A {\r
   return a1 + a2;\r
 }\r
@@ -57,5 +62,8 @@ func main(argc : int, argv : char**) : int {
   generic1<int>(1, 2);\r
   generic1<double>(3.4, 5.6);\r
 \r
+  var s: S2;\r
+  s.abc().xyz();\r
+\r
   return 0;\r
 }
\ No newline at end of file