diff --git a/src/checker.ts b/src/checker.ts index e99a745df..ea72a2fcf 100644 --- a/src/checker.ts +++ b/src/checker.ts @@ -487,7 +487,7 @@ class KArrow extends KindBase { } public hasFailed(): boolean { - return this.flags & KindFlags.UnificationFailed + return (this.flags & KindFlags.UnificationFailed) > 0 || this.left.hasFailed() || this.right.hasFailed(); }