Skip to content

Function body of braceless function used as return type #9

@Gama11

Description

@Gama11

(default codedox settings)

In Haxe, it's perfectly acceptable to have function declarations without braces. In these cases, codedox seems to think the function body is the return type:

class Test {
	public static function main() {}

	static function noBraces(i:Int) return switch(i) {
		case 0: "0";
		case 1: "1";
		case _: "something else";
	}
}

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions