Closed sethdeckard closed 1 year ago
It looks like I was able to patch this on my side, by mostly changing the templates, but also some of the filters. I'll submit a PR in the am. 😄
@MatyasKriz Here's the PR: https://github.com/Brightify/Cuckoo/pull/454
Generate a mock for the following protocol:
This produces code that will not compile because the keyword when used in the body of the method is not escaped:
PR https://github.com/Brightify/Cuckoo/pull/412 seems to attempt to address this, but only for the function name itself. Which kind of seems odd given that using
for
as an argument label seems somewhat common compared to using it as a function name, which seems like more of an edge case. In fact, Foundation actually has several functions that usefor:
as an argument label.The release notes mention this as being fixed but I think that should have been limited to function names (probably due to commit title being too general):
Cuckoo version: 1.9.1