summaryrefslogtreecommitdiff
path: root/test.toc
diff options
context:
space:
mode:
Diffstat (limited to 'test.toc')
-rw-r--r--test.toc14
1 files changed, 8 insertions, 6 deletions
diff --git a/test.toc b/test.toc
index 2855bb1..3170b55 100644
--- a/test.toc
+++ b/test.toc
@@ -8,13 +8,15 @@ putf ::= fn(x: float) {
};
// point ::= pkg "point";
-Foo ::= struct {
- b: &Bar;
-};
+// Foo ::= struct {
+ // b: Bar;
+// };
-Bar ::= struct {
- f: &Foo;
-};
+// Bar ::= struct {
+ // f: Foo;
+// };
+
+Foo ::= struct { p: &Foo; };
main ::= fn() {
f::=fn(t::Type)Type {t};