haxe icon indicating copy to clipboard operation
haxe copied to clipboard

Too big error range for Not_enough_arguments

Open RblSb opened this issue 3 years ago • 1 comments

Everything is red here from final word, instead of just join highlighting (not related to inline functions).

class Main {
	static function main() {
		final word = ["a", "b", "c"].map(char -> {
			// some long function
			return char;
		}).join();
	}
}

RblSb avatar May 13 '22 16:05 RblSb

This is technically correct because the call subject is the entire EField expression, not just the name. But I agree that it's quite stupid...

Simn avatar Jun 02 '22 05:06 Simn