class Main {
static function main() {}
}
extern class Foo {
/** some docs **/
var foo:Int;
/** some docs **/
function bar():Void;
}
@type doesn't work on the names of extern function declarations:
> haxe --display Main.hx@135@type
Error: No completion point was found
At the same time, on variables it somehow works fine:
> haxe --display Main.hx@94@type
<type p="..\main.hx:7: characters 6-9" d=" some docs ">
Int
</type>
Works fine on usages of foo too.