@:keep private function test(s :Array<String>) {
var i = s.length;
var j = s.join(" ");
var k = "hello";
var l = k.length;
}
compiles to
- (void) test:(NSMutableArray*)s{
int i = s.length;
NSString *j = [s join:@" "];
NSString *k = @"hello";
int l = k.length;
}
This crashes, because length property and the join: selector don't exist in NSMutableArray, and length doesn't exist on NSString either, they should have been replaced with the Haxe code in Array.hx and String.hx.
compiles to
This crashes, because
lengthproperty and thejoin:selector don't exist inNSMutableArray, andlengthdoesn't exist on NSString either, they should have been replaced with the Haxe code inArray.hxandString.hx.