Commit graph

12 commits

Author SHA1 Message Date
Nathan Shively-Sanders 738713b146 Improve error reporting
1. Fix bug in error reporting in compareSignaturesRelated.
2. When the this-argument is a union type, allow assignability when the
method's signature is assignable to *any* member of the union.
2016-02-08 14:01:51 -08:00
Nathan Shively-Sanders 2f74da112d Add specific error messages for out-of-place this
Also remove lint in checker.
2016-02-04 16:01:10 -08:00
Nathan Shively-Sanders 8c87da523b First round of review comments addressed.
Only major thing is a bug fix in
`isContextSensitiveFunctionLikeDeclaration`, and turning on context
sensitivity to `this` even with `--strictThis` off.
2016-02-04 15:43:43 -08:00
Nathan Shively-Sanders 04e7d81105 Add tests and baselines for this-function types. 2016-01-29 14:49:52 -08:00
Anders Hejlsberg a234497004 Updating existing test 2015-11-06 08:55:26 -08:00
Anders Hejlsberg 870e96e525 Adding test 2015-11-06 08:55:08 -08:00
Nathan Shively-Sanders 67b9647069 Add a variable of type this in constructor body
The test already had a reference to the `this` value, but that doesn't
show that the *type* is allowed.
2015-11-02 10:47:56 -08:00
Nathan Shively-Sanders e609047b78 Add tests based on #5449 2015-10-30 14:02:07 -07:00
Anders Hejlsberg 82c010e12a Adding contextual typing test 2015-09-29 15:26:27 -07:00
Anders Hejlsberg 1c9fae8e0c Add tuple type test 2015-09-27 09:05:17 -07:00
Anders Hejlsberg 19319b2208 Adding test for declaration files 2015-09-26 15:56:00 -07:00
Anders Hejlsberg abd2a8526d Adding tests 2015-09-26 12:58:53 -07:00