Commit Graph
1329 Commits
Author SHA1 Message Date
Daniel Rosenwasser 318e957377 Added tests. 2016-06-13 23:33:23 -07:00
Ryan Cavanaugh 576f09f531 Merge 2016-06-10 15:47:51 -07:00
Ryan Cavanaugh 9827b638b4 Implicit type inclusion changes 2016-06-10 15:44:11 -07:00
Mohamed Hegazy 97d7aa5fb5 Merge pull request #9042 from Microsoft/ES6ModulesES5Target
Fix #6319: Add support for `--t: es5` and  `--m es6`
2016-06-10 10:23:39 -07:00
Nathan Shively-Sanders 2b46656b4a Merge pull request #9061 from Microsoft/fix-this-resolution-in-parameter-initializers
Fix this resolution in parameter initializers
2016-06-09 16:20:45 -07:00
Mohamed Hegazy f0a430aef8 Code review comments 2016-06-09 15:52:17 -07:00
Nathan Shively-Sanders e307295fb9 Resolve function-this in parameter initialisers when explicitly provided 2016-06-09 15:20:51 -07:00
Yui 574a64dec9 Fix7334 Disallow async in functionExpression and ArrowFunction (#9062)
* Error when using async modifier in function-expression and arrow-function when target es5

* Add tests and baselines
2016-06-09 15:01:08 -07:00
Andy Hanson 7a2ef428cd Contextually type return statement in async function 2016-06-09 10:55:45 -07:00
Mohamed Hegazy 475c1c24fc Add more tests 2016-06-08 17:48:37 -07:00
Mohamed Hegazy 33137f68c5 Add more tests for target=es5 module=es6 2016-06-08 16:46:55 -07:00
Mohamed Hegazy 8360bc7961 Add handleing for classes 2016-06-08 16:43:56 -07:00
Nathan Shively-Sanders 9fac99e692 Add test case
The test passes in 1.8 and fails in master.
2016-06-08 14:23:42 -07:00
Vladimir Matveev 8b7fb8e7e8 Merge pull request #8739 from evansb/fix-8738
Fix #8738: Handles Re-assignment of Exported Clause Member
2016-06-07 16:23:02 -07:00
Andy 849ab7c5ec Merge pull request #8942 from Microsoft/param_trailing_commas
Allow trailing commas in function parameter and argument lists
2016-06-07 07:35:30 -07:00
Anders Hejlsberg 3b1effb7df Adding regression test 2016-06-04 14:50:37 -07:00
Anders Hejlsberg 87ee72b25a Add regression test 2016-06-03 17:31:28 -07:00
Andy Hanson 8b0974a77e Update tests 2016-06-03 09:29:21 -07:00
Anders Hejlsberg 706683d51b Add regression test 2016-06-02 06:54:27 -07:00
Vladimir Matveev 92938cd8df check that default clause is non-empty in reachability checks 2016-05-27 15:38:59 -07:00
Nathan Shively-Sanders 154729d40e Merge pull request #8770 from Microsoft/apparent-members-for-type-parameters-constrained-by-any
Apparent members for type parameters constrained by any
2016-05-26 16:26:28 -07:00
Mohamed Hegazy b70d07954c Merge pull request #8845 from Microsoft/Fix8834
Fix #8834: exclude paramters and variables from flag checks
2016-05-26 14:35:50 -07:00
Nathan Shively-Sanders 0a623f8a71 Merge pull request #8822 from Microsoft/excess-property-check-numeric-indexers
Excess property check numeric indexers
2016-05-26 13:39:29 -07:00
Mohamed Hegazy 5e49b57fea Fix #8834: exclude paramters and variables from flag checks 2016-05-26 13:00:38 -07:00
Mohamed Hegazy cbbc0ca8de Merge branch 'master' into Fix8795-1 2016-05-25 12:35:58 -07:00
Nathan Shively-Sanders 5138e8be8e Correct tests and update baselines.
A lot of tests used non-numeric property names for object literals that
are contextually typed only by a numeric indexer.
2016-05-25 11:37:10 -07:00
Anders Hejlsberg 6a27289b2d Add test 2016-05-25 11:17:03 -07:00
Nathan Shively-Sanders 89fb304eee Add test case for excess checking of numeric properties 2016-05-25 10:18:49 -07:00
Nathan Shively-Sanders 642d6d5407 Only allow excess numeric properties w/numeric indexers
Previously, having a numeric indexer on a target type meant that excess
object property checking would allow any property. Now only numeric
properties are allowed.
2016-05-25 10:12:16 -07:00
Mohamed Hegazy 7cb2db7f9e Fix #8795: make properties defined in optional constructor paramters optional 2016-05-24 20:09:15 -07:00
Ryan Cavanaugh 675d176cef Allow duplicate identifiers as long as their declarations span multiple blocks
Fixes #8675
2016-05-24 09:58:56 -07:00
Anders Hejlsberg 92d465d01f Merge pull request #8730 from Microsoft/destructureOptionalParameter
Fix destructuring of optional parameters with --strictNullChecks
2016-05-23 15:41:30 -07:00
Anders Hejlsberg f1d023a689 Merge pull request #8731 from Microsoft/subtypeRelationForNever
Fix subtype relation for 'never' type
2016-05-23 15:40:38 -07:00
Nathan Shively-Sanders cd97270721 Add test case 2016-05-23 15:11:03 -07:00
Evan Sebastian ebd4ce6e7a Factor out the behaviour and handles x++ and ++x 2016-05-24 04:51:46 +07:00
Evan Sebastian ec60ac94ab Add test for composite assignment 2016-05-24 04:24:38 +07:00
Mohamed Hegazy 6438fd57c2 Merge branch 'master' into Fix8634 2016-05-23 10:04:30 -07:00
Evan Sebastian 81ee9687e7 Add failing test for #8738 2016-05-22 21:51:21 +07:00
Mohamed Hegazy f1662f8a18 Fix #8729: Make JSON.stringify accept null and undefined replacers 2016-05-21 12:59:09 -07:00
Anders Hejlsberg 7d11c7fe40 Add regression test 2016-05-21 11:17:47 -07:00
Anders Hejlsberg b547b5463a Adding regression test 2016-05-21 10:41:25 -07:00
Nathan Shively-Sanders 89ebe5acad Merge pull request #8719 from Microsoft/instantiate-cross-file-merges
Instantiate cross file merges
2016-05-20 13:13:45 -07:00
Nathan Shively-Sanders 3bdfd8f477 Make sure to instantiate merged type parameters 2016-05-20 10:59:05 -07:00
Nathan Shively-Sanders 61154b6bdd Merge pull request #8713 from Microsoft/generic-inherited-default-constructor
Generic inherited default constructor
2016-05-20 10:41:44 -07:00
Nathan Shively-Sanders 60b8d0a7a3 Clean up tests a bit 2016-05-20 10:20:02 -07:00
Mohamed Hegazy 934c78a89d Fix #8694: check for singatures before calling a type empty 2016-05-19 12:36:04 -07:00
Nathan Shively-Sanders c172c06777 Test assignability of inherited generic default constructor 2016-05-19 10:35:29 -07:00
Nathan Shively-Sanders 780f251c92 Merge pull request #8650 from Microsoft/unescape-dunder-string-literal-types
Unescape string literal types starting with double underscore.
2016-05-18 09:13:05 -07:00
Mohamed Hegazy 53f6755907 Add error message if module is not specified and a file contains a module indicator 2016-05-17 17:14:51 -07:00
Nathan Shively-Sanders a5585c544f Unescape only string literal type nodes.
Not all string literal types, regardless of source, as in the last
commit.
2016-05-17 13:42:15 -07:00