1
1
mirror of https://github.com/github/semantic.git synced 2024-11-29 02:44:36 +03:00

Make the Roll case indirect.

This commit is contained in:
Rob Rix 2015-10-14 14:04:35 -04:00
parent b8dca6fe2a
commit 7e9a41dfbd

View File

@ -19,7 +19,7 @@ public enum Algorithm<Leaf, B> {
case Pure(B)
/// A recursive instantiation of `Operation`, unrolling another iteration of the recursive type.
case Roll(Operation<Algorithm, Term, Diff>)
indirect case Roll(Operation<Algorithm, Term, Diff>)
public func analysis<C>(@noescape ifPure ifPure: B -> C, @noescape ifRoll: Operation<Algorithm, Term, Diff> -> C) -> C {
switch self {