Closed tjarratt closed 7 years ago
When a protocol has a method whose argument labels differ between the caller and the callee, we need to capture both of these and include both in the generated code (otherwise the protocol adherence will fail).
Given this protocol
protocol DoesStuffWithLabels { func loadCurrentUserInfo(completionBlock completion: SomeBlockType) }
We generate this incorrect code
class FakeDoesStuffWithLabels { // snip func loadCurrentUserInfo(completion: SomeBlockType) { // omitted for brevity } //snip }
Fixed by 2771050.
2771050
brew update && brew upgrade fake4swift if you want to see this behavior locally.
brew update && brew upgrade fake4swift
When a protocol has a method whose argument labels differ between the caller and the callee, we need to capture both of these and include both in the generated code (otherwise the protocol adherence will fail).
Given this protocol
We generate this incorrect code