Commit Graph

1307 Commits

Author SHA1 Message Date
Ron Buckton ee39c4e8d4 Merge branch 'master' into transforms-merge 2016-05-25 14:14:32 -07:00
Anders Hejlsberg 6a27289b2d Add test 2016-05-25 11:17:03 -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
Mohamed Hegazy 6438fd57c2 Merge branch 'master' into Fix8634 2016-05-23 10:04:30 -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
Nathan Shively-Sanders e25927da57 Unescape string literal types starting with double underscore.
String literal types starting with double underscore are escaped in the
parser and need to be unescaped before the type is given the string
literal as its name.
2016-05-17 13:05:03 -07:00
Nathan Shively-Sanders 70d8def398 Add test that infers 'number' from pattern 2016-05-17 09:33:55 -07:00
Nathan Shively-Sanders ae4a983c59 Use binding pattern for type inference result {}
The binding pattern provides additional information when the contextual
type is not found and would otherwise fix a type parameter to `{}`.
2016-05-16 16:09:36 -07:00
Andy 7806de0f45 Merge pull request #8555 from Microsoft/readonly_ctr
Fix #7590: Allow 'readonly' to be used in constructor parameters
2016-05-12 10:29:22 -07:00
Andy Hanson 22ee90a744 Add test for lambda parameter named 'readonly' 2016-05-12 07:07:38 -07:00
Andy Hanson ce596732ab Remove duplicate check for misplaced parameter properties (taken care of by checkParameter) 2016-05-12 07:07:37 -07:00
Anders Hejlsberg 43691b10a8 Adding test 2016-05-11 13:03:47 -07:00
Vladimir Matveev 747924a3c5 Merge pull request #8539 from Microsoft/resolveTargetForVarSymbol
resolve target of alias when getting member from the module
2016-05-09 17:08:36 -07:00
Vladimir Matveev f95b0bcf82 resolve target of alias when getting member from the module 2016-05-09 15:40:03 -07:00
Mohamed Hegazy cf4d94bd2a Merge pull request #8515 from Arnavion/lib-d-ts-fixes-3
`this`-related changes + new String.normalize overload
2016-05-09 13:41:10 -07:00
Vladimir Matveev a2948e131d guard agains cases when local value in initializer shadows function parameter with the same name 2016-05-09 08:50:06 -07:00
Arnavion aa87df2cfb Update tests and baselines. 2016-05-07 16:40:52 -07:00
Vladimir Matveev c36c074f37 disallow references to local variables of the function from parameter initializers 2016-05-06 12:01:38 -07:00
Vladimir Matveev 2b5bbfee60 use CompilerHost.realpath to resolve actual location for symlinks 2016-05-05 13:38:09 -07:00
Anders Hejlsberg 65891766e5 Adding regression test 2016-05-04 15:43:30 -07:00
Mohamed Hegazy e9122a9f34 Merge pull request #8450 from Microsoft/Fix8357
Fix #8357: Remove optionality for the definition of `IteratorResult`
2016-05-03 21:54:44 -07:00
Mohamed Hegazy 9ff66fbb5e Code review comments 2016-05-03 16:13:33 -07:00
Mohamed Hegazy 9ad08324d8 Fix #8357: Remove optionality for the definition of IteratorResult 2016-05-03 15:53:17 -07:00
Mohamed Hegazy c5a81edfb1 Fix #8423: Remove undefined while getting the type of the first argument of then signature 2016-05-03 14:51:30 -07:00
Vladimir Matveev 50390bb586 check usage before declaration for computed properties in destructuring inside for-of variable declaration 2016-05-02 13:31:35 -07:00
Anders Hejlsberg d9f0293c6c Fixing repro test 2016-05-02 11:17:10 -07:00
Nathan Shively-Sanders d1b60f8bfb Merge pull request #8389 from Microsoft/make-object-literal-this-any-typed
Make `this` in object literal always of type `any`
2016-04-29 19:15:04 -07:00
Anders Hejlsberg f0e2d817ca Merge pull request #8390 from Microsoft/narrowingOfDottedNames
Fix narrowing of dotted names
2016-04-29 16:58:29 -07:00
Nathan Shively-Sanders 8d45a73f12 Add --noImplicitThis test for object literals 2016-04-29 16:42:51 -07:00
Anders Hejlsberg ef5119590b Removing comments from test 2016-04-29 16:40:07 -07:00
Anders Hejlsberg 644e987633 Adding regression test 2016-04-29 16:20:32 -07:00
Anders Hejlsberg 81bab64ade Adding regression test 2016-04-29 13:57:41 -07:00
Yui fef3e97c34 [Transforms] Fix emit comment in wrong position when transforms export declaration to require statement (#8321)
* Fix emit comment in wrong location when transform export declaration to require statement

* Add tests and baselines

* Add tests and baselines

* Update baselines
2016-04-26 20:09:26 -07:00
Ryan Cavanaugh fed42cc6bd Add test 2016-04-26 13:01:14 -07:00
Anders Hejlsberg da0197527f Merge pull request #8295 from Microsoft/anyDefaultsToAny
Variable of type any has initial type any in control flow analysis
2016-04-25 21:41:30 -07:00
Anders Hejlsberg 6cd7db8257 Adding regression test 2016-04-25 21:24:42 -07:00
Mohamed Hegazy 743fa3c32d Fix #8271: Add undefined type to index signatures 2016-04-25 10:40:14 -07:00