iswiftapp / iswift

Objective-C to Swift Converter
30 stars 3 forks source link

Improve block recognition #98

Open charlieMonroe opened 9 years ago

charlieMonroe commented 9 years ago

Here is a method signature that will fail with unexpected ^:

-(BOOL)processSourceWithRegex:(XURegex*)regex inSource:(NSString*)source withTextDecoder:(NSString*(^)(NSString*))textDecoder returnTitle:(NSString**)title andURL:(NSURL**)url
charlieMonroe commented 9 years ago

Update: it works fine when the return type is a simple id - but failes with a typed object return.

drkameleon commented 9 years ago

Can you please give me a code example of what did work? (I'm not sure I got what you mean...)

charlieMonroe commented 9 years ago

Ok, doesn't work either, sorry :)