jshint/jshint — Issue #346: Incorrect line number for latedef option
Author: goatslacker
Created: 2011-11-19 23:19:06+00:00
State: open

/*jshint latedef: true */
foo();

function foo() {
}

will tell me:

`line 4, col 13, 'foo' was used before it was defined.`

But foo wasn't used on line 4, it was defined on line 4.

I propose we change the error statement since there can be multiple uses of foo() before it's defined.