Commit graph

7 commits

Author SHA1 Message Date
Nathan Shively-Sanders 6c735b5cbf Add contextual typing test with this specified 2016-04-07 07:59:46 -07:00
Nathan Shively-Sanders c9f5f3d67e Remove --strictThisChecks 2016-03-25 15:41:37 -07:00
Nathan Shively-Sanders 1032cc5408 Rename --strictThis to --strictThisChecks
Use the upcoming naming scheme for --strict.*Checks and --strictChecks
flags.
2016-03-11 13:24:31 -08:00
Nathan Shively-Sanders 41bb446865 Revert unioning of this argument types
The right solution is to not instantiate this-types of unions, which is a
separate problem more to do with this-class types.
2016-02-08 16:39:19 -08:00
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 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