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

extend’s transformation function is @noescape.

This commit is contained in:
Rob Rix 2015-10-14 10:20:05 -04:00
parent 7bff8f6f50
commit 2c56ee66ea

View File

@ -37,7 +37,7 @@ extension Cofree {
} }
} }
public func extend<Other>(transform: Cofree -> Other) -> Cofree<A, Other> { public func extend<Other>(@noescape transform: Cofree -> Other) -> Cofree<A, Other> {
return .Unroll(transform(self), unwrap.map { $0.extend(transform) }) return .Unroll(transform(self), unwrap.map { $0.extend(transform) })
} }