Closed charlieMonroe closed 8 years ago
Hmm... Interesting catch - how is it possible that I have missed that?!
Fixed as of the upcoming 2.1.
P.S. Not now (perhaps from 2.2 on), this will be part of a togglable "Smart Type Recognition" option. It's already a problematic thing (as we both know), so I'm already thinking of a few solutions...
Example:
@implementation aClass
- (void)someFunc {
aClass* b;
}
@end
class aClass {
func someFunc() {
var b: aClass
}
}
Example:
iSwift fails on this line:
MNCountry *country = [[self alloc] init];
Saying that MNCountry is an unknown type. Since this is within
@implementation MNCountry
, it should be a known type. A fix is, of course, to declare@class MNCountry;
at the top, but that seems a bit unnecessary, IMHO.