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:
parent
b8dca6fe2a
commit
7e9a41dfbd
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user