Commit Graph
11 Commits
Author SHA1 Message Date
Collins Abitekaniza c0573c59c9 Prevent collision of imported type with exported declarations in current module (#31231)
* check for exported type name for conflict

* refactor baseline tests for import/export name collision
2019-09-27 07:55:04 -07:00
Collins Abitekaniza 0341c2fe75 add baseline for unknown type spread 2019-08-19 16:32:09 +03:00
Collins Abitekaniza 75ac6eb284 restrict object spreading on unkown type 2019-08-19 03:10:08 +03:00
Collins Abitekaniza 2bb2f9ff68 add baseline tests for spreading instantiable type 2019-05-03 05:31:28 +03:00
Collins Abitekaniza 9d48047aa6 check if instantiable type constraint allows spread 2019-05-03 05:31:28 +03:00
Collins Abitekaniza 7016d45447 Better errors for indexing gettable/settable values (#26446)
* give suggestions when index signature given

* add tests for noImplicitAny indexing on Object

* remove comments regarding error messages

* recommend set if el is on RHS of assignment else get

* add new baseline tests
2019-04-30 08:31:37 -07:00
Collins Abitekaniza 7b55d1846b Giving too many arguments should error on the first argument that exceeds arity (#27982)
* span on first arg that exceeds arity

* refactor baseline

* handle cases for spread arguments

* refactor + add coverage for tuple spread cases

* create diagnostic on NodeArray of exceeding args

* test function overloading
2019-03-12 15:57:12 -07:00
Collins Abitekaniza d396830386 add error showing where prop was also declared if is a dup 2018-10-16 21:54:14 +03:00
Collins Abitekaniza f70f8eb70d refactor baseline 2018-10-16 07:57:02 +03:00
Collins Abitekaniza 66b299dc6e refactor diagnostics 2018-10-16 06:59:00 +03:00
Collins Abitekaniza 2e993230e6 use decl key value if any 2018-10-16 06:59:00 +03:00