From 2252f8dbe6c376f5dd6a862308a61c8e96563b44 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Wed, 28 Oct 2015 11:54:40 -0400 Subject: [PATCH] Free.analysis rethrows errors. --- prototype/Doubt/Free.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/prototype/Doubt/Free.swift b/prototype/Doubt/Free.swift index 0bc4908c3..a3ae68a02 100644 --- a/prototype/Doubt/Free.swift +++ b/prototype/Doubt/Free.swift @@ -21,12 +21,12 @@ public enum Free: CustomDebugStringConvertible { } - public func analysis(@noescape ifPure ifPure: Value -> C, @noescape ifRoll: (Annotation, Syntax) -> C) -> C { + public func analysis(@noescape ifPure ifPure: Value throws -> C, @noescape ifRoll: (Annotation, Syntax) throws -> C) rethrows -> C { switch self { case let .Pure(b): - return ifPure(b) + return try ifPure(b) case let .Roll(s): - return ifRoll(s) + return try ifRoll(s) } }