From b68c6ac4a15a38b0f10e7fb857861026fc12e72e Mon Sep 17 00:00:00 2001 From: Juraj Kirchheim Date: Mon, 3 Sep 2018 18:49:08 +0200 Subject: [PATCH] Fix complex type intersection. --- src/tink/macro/Types.hx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tink/macro/Types.hx b/src/tink/macro/Types.hx index d057b80..c932d20 100644 --- a/src/tink/macro/Types.hx +++ b/src/tink/macro/Types.hx @@ -193,12 +193,12 @@ class Types { case TPath(p): paths.push(p); case TAnonymous(f): - for (f in fields) fields.push(f); + for (f in f) fields.push(f); case TExtend(p, f): - for (f in fields) fields.push(f); - for (p in paths) paths.push(p); + for (f in f) fields.push(f); + for (p in p) paths.push(p); default: