TypeScript/tests/baselines/reference/noErrorsInCallback.errors.txt
Anders Hejlsberg a515b199b7 Better error messages in function calls.
Fixes #93.
This is an evolution of #220.
2014-07-24 17:00:03 -07:00

13 lines
No EOL
450 B
Text

==== tests/cases/compiler/noErrorsInCallback.ts (2 errors) ====
class Bar {
constructor(public foo: string) { }
}
var one = new Bar({}); // Error
~~
!!! Argument type '{}' is not assignable to parameter type 'string'.
[].forEach(() => {
var two = new Bar({}); // No error?
~~
!!! Argument type '{}' is not assignable to parameter type 'string'.
});