2482 Commits

Author SHA1 Message Date
Nathan Shively-Sanders
f75e32eef6 Improve mergedInheritedClassInterface test case
Covers the case when the merged interface extends an interface, but the
merged class does not extend a class, then trying to extend that class.
2015-10-23 14:59:42 -07:00
Nathan Shively-Sanders
6fe1725ad1 Accept new baselines 2015-10-23 14:59:33 -07:00
Nathan Shively-Sanders
04e1d85314 Accept baselines
A couple of tests were previously updated to give an incorrect error
message.
2015-10-23 14:59:25 -07:00
Nathan Shively-Sanders
4610cfc9f3 Tests for interfaces merged w/classes
Both interfaces and classes have base classes/interfaces; all members are
available on an instance of the merged child.
2015-10-23 14:59:20 -07:00
Nathan Shively-Sanders
36549572aa Add tests and accept baselines 2015-10-23 14:56:32 -07:00
Ron Buckton
34cc9bfe77 Tests 2015-10-20 12:58:30 -07:00
Mohamed Hegazy
e98a76fb62 Merge pull request #5257 from Microsoft/module-merge-with-constructors
Module merge with constructors
2015-10-16 16:55:57 -07:00
Mohamed Hegazy
bb369f1423 Merge pull request #5290 from Microsoft/interfaceClassMergingFix
Do not report errors for classes and interfaces merging
2015-10-16 16:45:31 -07:00
Mohamed Hegazy
8b8d33d8b8 Fix comments 2015-10-16 16:29:11 -07:00
Nathan Shively-Sanders
a8aa48e73f Merge pull request #5230 from Microsoft/ambient-class-merges-overloads-with-interface
Ambient class merges overloads with interface
2015-10-16 15:08:59 -07:00
Mohamed Hegazy
35a303ac01 Do not report errors for classes and interfaces merging 2015-10-16 10:54:35 -07:00
Nathan Shively-Sanders
53188d9cb8 Add ES2015 as a synonym to ES6
In ModuleKind, ScriptTarget and associated command line arguments.
2015-10-15 11:35:52 -07:00
Nathan Shively-Sanders
c66bbd8cea Tests now correctly include a constructor 2015-10-14 12:43:56 -07:00
Mohamed Hegazy
21e30e0f59 Merge pull request #5235 from Microsoft/fixDecoratorDiagostics
Fix exception in compiler when type checking decorators with generics.
2015-10-14 12:29:08 -07:00
Nathan Shively-Sanders
12b7a998e9 Add test case 2015-10-14 12:23:37 -07:00
Vladimir Matveev
124447763b Merge pull request #5233 from Microsoft/relaxedUseBeforeDef
allow forward references to block scoped variables from functions
2015-10-13 14:19:01 -07:00
Vladimir Matveev
0465f1b0bb revert enum related changes 2015-10-13 13:18:58 -07:00
Vladimir Matveev
48b24343b1 use isBlockScopedNameDeclaredBeforeUse for block scoped variables and enums 2015-10-13 00:07:36 -07:00
Ron Buckton
0fa89ad99c Fixes #5104. 2015-10-12 17:38:55 -07:00
Vladimir Matveev
eb3b91cf1b addressed PR feedback 2015-10-12 17:24:39 -07:00
Yui
77eaf04386 Merge pull request #4914 from Microsoft/exponentiation
[ES7] Exponentiation
2015-10-12 16:37:45 -07:00
Vladimir Matveev
f952873ef1 allow forward references to block scoped variables from functions 2015-10-12 16:18:37 -07:00
Nathan Shively-Sanders
3a55c849c7 Assert that ambient classes merge with interfaces
Specifically, overloads are recognised as having the same export/ambient
flags when merging the two.
2015-10-12 14:26:45 -07:00
Ryan Cavanaugh
c05297cfea Merge pull request #5178 from RyanCavanaugh/fix5132
Escape quotes when emitting React
2015-10-12 11:56:46 -07:00
Vladimir Matveev
22e68de7ec Merge pull request #5216 from Microsoft/checkFunctionsInClassExpressions
check functions in class expressions
2015-10-12 11:09:21 -07:00
Yui T
2918f9d7a2 Update baseline after merge conflict 2015-10-12 10:55:10 -07:00
Yui T
d3e10b3d3f Merge remote-tracking branch 'origin/master' into exponentiation
Conflicts:
	src/compiler/diagnosticInformationMap.generated.ts
	src/compiler/program.ts
2015-10-12 10:54:46 -07:00
Vladimir Matveev
ca98831674 addressed PR feedback: added tests for let declarations 2015-10-12 10:22:18 -07:00
Vladimir Matveev
adf9f9b8df check initialization of exported block scoped variables 2015-10-12 09:59:41 -07:00
Vladimir Matveev
a0683276d1 check functions in class expressions 2015-10-11 21:57:17 -07:00
Vladimir Matveev
1b5dc0d7d1 Merge pull request #5121 from Microsoft/shorthandPropsInDestructuring
parse/check/emit shorthand property assignment in destructuring
2015-10-10 22:39:05 -07:00
Martin Vseticka
69ff6f5090 Add "A module cannot have multiple default exports." message for multiple "default" exports 2015-10-09 21:37:54 +02:00
Vladimir Matveev
a556209b7e addressed PR feedback 2015-10-09 09:55:25 -07:00
Yui T
5e921c1d8d Address PR feedback, remove scriptTarget ES7 2015-10-08 17:12:22 -07:00
Yui T
af5dc3e3b3 Address PR feedback. Always emit parentheses around emit capturing 2015-10-08 16:59:49 -07:00
Mohamed Hegazy
350bb1f315 Merge pull request #5167 from jbondc/const-indexed-access
Const enum indexed access
2015-10-08 15:39:14 -07:00
Yui T
cd3f711a76 Address PR feedback 2015-10-08 14:38:58 -07:00
jbondc
afa08181e2 Address code review.
Accept baselines.
2015-10-08 17:30:46 -04:00
Ryan Cavanaugh
d229ae4be5 Escape quotes when emitting React 2015-10-08 11:28:18 -07:00
Anders Hejlsberg
cae21c09b4 Adding tests 2015-10-08 10:58:58 -07:00
jbondc
82eb992dc4 Accept baselines. 2015-10-08 08:21:28 -04:00
Yui T
37db03ae6a Address feedback on diagnostic message 2015-10-07 14:50:58 -07:00
Ron Buckton
703af074ff Fixes some checker errors regarding async functions. Fixes #5115. 2015-10-06 16:44:48 -07:00
Yui T
8be77b448f Update test to parse typeAssertion as simpleUnaryExpression 2015-10-06 15:29:21 -07:00
Ron Buckton
64b6c9f52e Fix emit for ES6 export default class with static initializers. Fixes #5136. 2015-10-06 12:02:55 -07:00
Ryan Cavanaugh
d7eaa12aad Merge pull request #5126 from RyanCavanaugh/noLibSymbolLines
Don't show lib.d.ts line numbers in symbol baselines
2015-10-06 10:00:26 -07:00
Yui T
788f222059 parenthesized exponentiation with template string 2015-10-05 19:07:49 -07:00
Yui T
fbe559eef0 Address PR and add new with exponentiation 2015-10-05 19:07:02 -07:00
Yui T
bd7cc1e7ef Invalid usage of exponentiation 2015-10-05 19:06:48 -07:00
Yui T
d0aaf41252 Add baselines when having early syntax error in exponentiation 2015-10-05 19:06:17 -07:00