-
Notifications
You must be signed in to change notification settings - Fork 101
Open
Labels
Description
Hi - first of all - thanks for this great plugin! While writing some externs I discovered that the plugin doesn't support a function type as return type. I created a valid code example on https://try.haxe.org/#e1A50 which I paste here:
class Test {
static function main() {
// a is fine
var a : Any -> Any -> Any =
function ( any : Any, any2 : Any ) : Any {
trace( "a()" );
return any;
};
// b is fine as well
var b : (Void -> Void) -> Void =
function ( func : Void -> Void ) : Void {
trace( "b()" );
};
// c isn't:
var c : Void -> (Void -> Void) =
function () : Void -> Void {
trace( "c()" );
return function() : Void {
trace( "d()" );
}
};
a( "any", "any");
b( function() { trace( "b(())" ); } );
var d = c();
d();
}
}
And here a little shot of the error displayed in IntelliJ IDEA:
Looks not that bad in this code example, but on a different setup it avoids autocompletion, imports validation and stuff like that: