Commit Graph

1749 Commits

Author SHA1 Message Date
Nathan Shively-Sanders
ae2a13cf18 Merge pull request #12896 from Microsoft/implicit-any-error-on-explicit-any
Set symbol/flags only on (fresh) object spreads
2016-12-13 14:15:52 -08:00
Nathan Shively-Sanders
587ba8d0ae Test:spreading any doesn't set flags on anyType
And update baselines
2016-12-13 13:55:13 -08:00
Vladimir Matveev
c71e6cc9ef add a new line if after writing trailing comments (#12894) 2016-12-13 12:57:21 -08:00
Vladimir Matveev
e5e1533d49 mark types used in decorator metadata as referenced (#12890) 2016-12-13 11:46:06 -08:00
Mohamed Hegazy
24c56a5733 Merge pull request #12775 from Microsoft/fix12724
Fix error on extends in declaration file with importHelpers
2016-12-12 16:18:22 -08:00
Vladimir Matveev
d0506735e3 elaborate check before converting fresh literal type to regular (#12595) 2016-12-12 12:37:06 -08:00
Andy
a33e6536e0 Merge pull request #12852 from Microsoft/untyped_augmentation_2
Produce an error for an augmentation of an untyped module even if `moduleNotFoundError` is not defined
2016-12-12 12:33:37 -08:00
Nathan Shively-Sanders
65bb78d569 Merge pull request #12808 from Microsoft/self-referencing-spread-recursive-loop
Self-referencing spread recursive loop
2016-12-12 10:40:34 -08:00
Vladimir Matveev
496a14a021 create new lexical environment for the body of converted loop (#12831) 2016-12-12 10:18:30 -08:00
Vladimir Matveev
a604d84f5c guard against visiting the same symbol table multiple times (#12818) 2016-12-12 10:17:07 -08:00
Andy Hanson
83eddb549e Produce an error for an augmentation of an untyped module even if moduleNotFoundError is not defined 2016-12-12 07:36:54 -08:00
Nathan Shively-Sanders
809706ba00 Test self-assignment w/array spread in loop 2016-12-09 10:52:49 -08:00
Sheetal Nandi
81452c544a Do not report unused local error on locals that are intended for removing properties with object spread
Fixes #12766
2016-12-08 15:12:35 -08:00
Sheetal Nandi
9505a18894 Add tests when object spread is used in destructuring 2016-12-08 14:35:35 -08:00
Ron Buckton
09761b5f07 Fix error on extends in declaration file with importHelpers 2016-12-08 13:43:32 -08:00
Nathan Shively-Sanders
e3fb305d5a Test that sub-subclass can access protected ctor 2016-12-05 12:24:31 -08:00
Sheetal Nandi
86f69f13fa Add test for the decorated method beginning with underscore 2016-12-01 13:04:11 -08:00
Sheetal Nandi
adf9b26f50 Handle parameter type error for index signature in declaration emit
Fixes #12572
2016-11-30 16:28:26 -08:00
Mohamed Hegazy
e4f0a50a7c Update test name 2016-11-29 12:29:40 -08:00
Mohamed Hegazy
9ab55c1576 change test 2016-11-29 12:27:56 -08:00
Mohamed Hegazy
216f286133 Handel null and undefined in object spread and rest 2016-11-29 12:25:10 -08:00
Mohamed Hegazy
f2e30f6693 Allow union and intersection as targets for object spread and rest, and distribute spread&rest over unions 2016-11-29 00:04:20 -08:00
Anders Hejlsberg
c89b1eb9e9 Merge pull request #12386 from mariusschulz/union-and-intersection-types-with-leading-operator
Union and intersection types with leading operator
2016-11-28 15:57:24 -08:00
Anders Hejlsberg
2b0721672c Add regression test 2016-11-28 11:01:19 -08:00
Anders Hejlsberg
0be4edefca Add regression test 2016-11-28 09:35:03 -08:00
Anders Hejlsberg
d1393a60d4 Add regression test 2016-11-26 12:22:29 -08:00
Anders Hejlsberg
2cec4c5ebb Add regression test 2016-11-23 18:28:59 -08:00
Mohamed Hegazy
72cee3e045 Merge pull request #12434 from Microsoft/Fix12377
Add special handeling for function and array in Object.freeze
2016-11-23 13:26:36 -08:00
Sheetal Nandi
20a8a30b76 Instead of creating clone of the jsxFactory's leaf node, create synthesized node
Fixes #12467
This avoid setting original node which would be something from isolated parsing and hence not valid when resolving expression
2016-11-23 12:26:02 -08:00
Sheetal Nandi
79bf477b67 Revert "Instead of creating clone of the jsxFactory's leaf node, create synthesized node"
This reverts commit 4e7313b4f6.
2016-11-23 12:24:44 -08:00
Sheetal Nandi
4e7313b4f6 Instead of creating clone of the jsxFactory's leaf node, create synthesized node
Fixes #12467
This avoid setting original node which would be something from isolated parsing and hence not valid when resolving expression
2016-11-23 12:22:28 -08:00
Mohamed Hegazy
60395565e6 Handel call and construct signatures 2016-11-23 09:48:25 -08:00
Daniel Rosenwasser
4701eb70e2 Merge pull request #12357 from mylesmegyesi/12075-incorrectErrorMessageForUseOfTypeAsNamespace
Fixes error message when Type is used as a Namespace
2016-11-23 11:08:38 -05:00
Anders Hejlsberg
864e1797d9 Merge pull request #12396 from Microsoft/getTypeOfExpression
Introduce 'getTypeOfExpression' function
2016-11-22 15:33:37 -08:00
Mohamed Hegazy
72df02cbbd Add function 2016-11-21 23:27:18 -08:00
Mohamed Hegazy
8a334ac00d Add special handeling for function and array in Object.freeze 2016-11-21 23:13:22 -08:00
Vladimir Matveev
4c6b94f16f wrap subexpressions of conditional expressions in parens if necessary (#12420) 2016-11-21 12:52:13 -08:00
Marius Schulz
d040db42f5 Add test for proper tuple type handling 2016-11-20 22:26:32 +01:00
Anders Hejlsberg
c1c12c75f7 Add regression test 2016-11-20 08:55:20 -08:00
Marius Schulz
e45c5dbcea Add tests and accept new baselines 2016-11-19 22:30:33 +01:00
Nathan Shively-Sanders
b514d7c91c Merge pull request #12362 from Microsoft/disable-evolving-types-with-implicit-any
Disable evolving types with implicit any
2016-11-18 15:39:02 -08:00
Nathan Shively-Sanders
7750fe1a7c Always enable evolving types in Javascript files 2016-11-18 14:13:56 -08:00
Sheetal Nandi
aa556502f3 Handle when type alias's type parameter extends type that wont get emitted in .d.ts
Fixes #12326
2016-11-18 14:02:57 -08:00
Nathan Shively-Sanders
8674d92bdb Disable evolving types with implicit any
That is, without --noImplicitAny
2016-11-18 13:51:44 -08:00
Sheetal Nandi
cbde25f229 Handle the scenario when heritage clause of interface is not entity name expression
Fixes #12291
2016-11-18 13:11:33 -08:00
Myles Megyesi
d8b0f239f1 Fixes error message when Type is used as a Namespace
Fixes #12075
2016-11-18 11:38:24 -06:00
Anders Hejlsberg
73ada7a78d Merge pull request #12251 from Microsoft/fixTypePredicateStructuralMatch
Fix type predicates with structurally identical types
2016-11-15 13:20:35 -08:00
Nathan Shively-Sanders
a74e9d8ccf Merge pull request #12158 from Microsoft/fix-literal-comparability-in-relational-comparison-operators
Fix literal comparability in relational comparison operators
2016-11-15 08:24:06 -08:00
Anders Hejlsberg
6d28595e5a Add repro test 2016-11-14 17:06:46 -08:00
Mohamed Hegazy
1164df2c6d Merge pull request #12197 from Microsoft/commentsSuperCallReturns
Fix up comments for super calls rewritten as returns
2016-11-14 16:10:03 -08:00