Skip to content

[display] @type not working on extern function declarations #6442

@Gama11

Description

@Gama11
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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions