Commit Graph
1307 Commits
Author SHA1 Message Date
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
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