From 7353052c1b3f72584fab5ff94e45f12987ec581b Mon Sep 17 00:00:00 2001 From: Charles Forsyth Date: Sun, 14 May 2017 22:32:40 +0100 Subject: unless oldcycles, certain cyclic references are fine --- appl/cmd/limbo/types.b | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appl/cmd/limbo/types.b b/appl/cmd/limbo/types.b index 6b1802e5..c14ff512 100644 --- a/appl/cmd/limbo/types.b +++ b/appl/cmd/limbo/types.b @@ -1774,7 +1774,7 @@ cycfield(base: ref Type, id: ref Decl) error(base.src.start, "illegal type cycle without a reference in field " +id.sym.name+" of "+stypeconv(base)); id.cycerr = byte 1; - }else if(arc & ArcCyc){ + }else if(arc & ArcCyc && oldcycles){ if((arc & ArcArray) && id.cyc == byte 0 && !(arc & ArcPolycyc)){ if(id.cycerr == byte 0) error(base.src.start, "illegal circular reference to type "+typeconv(id.ty) -- cgit v1.2.3