jsx/JSX — pull request #96 by wasabiz (2013-01-25 09:46:20+00:00)
Title: Wasabiz/argument mismatch compile note

I enhanced jsx compiler to emit more detailed hints when encountered errors.
In particular, this patch added compile note functionality to emit information about argument mismatch.

Compiling below code with this patch prints out the candidates of the callees and corresponding type information.
```
class _Main {
static function a (x : number) : void {}
static function a (x : string) : void {}
static function a (x : number, y : string) : void {}
static function main(args : string[]) : void {
_Main.a([1]);
}
}
```
```
[myerror1.jsx:6:15] no function with matching arguments
_Main.a([1]);
^

[myerror1.jsx:2:9] Note: candidate function not viable: no known conversion from Array. to number for 1st argument.
static function a (x : number) : void {}
^^^^^^^^

[myerror1.jsx:3:11] Note: candidate function not viable: no known conversion from Array. to string for 1st argument.
static function a (x : string) : void {}
^^^^^^^^

[myerror1.jsx:4:11] Note: candidate function not viable: wrong number of arguments
static function a (x : number, y : string) : void {}
^^^^^^^^

```