Commit graph

6 commits

Author SHA1 Message Date
Nathan Shively-Sanders
154ac342cb
Allow extending any, with noImplicitAny errors (#23153)
Allow extending any, without noImplicitAny errors
2018-04-05 08:52:56 -07:00
Anders Hejlsberg
25738a8e41 Update tests 2017-02-28 16:09:42 -08:00
Anders Hejlsberg
6fdd929a66 Update test 2017-02-24 19:52:50 -08:00
Anders Hejlsberg
e512376b0c Update tests 2017-02-16 17:42:22 -08:00
Nathan Shively-Sanders
9f7621c7e2 Contextual signatures without thisType return anyType
If a contextual signature is found, if its thisType is undefined, then the contextual type of `this` is now `any`.
Previously `checkThisExpression` would keep looking for a different type for `this`.

Also update tests to show this new behaviour.
2016-04-28 14:17:11 -07:00
Nathan Shively-Sanders
3a74f483ba this in object literals intersects contextual type and literal type 2016-04-28 10:09:04 -07:00