923 Commits

Author SHA1 Message Date
Ryan Cavanaugh
d0ca71f445 Correctly copy assumptions back into the relational cache 2015-01-29 13:32:27 -08:00
Ryan Cavanaugh
b7824e8de4 Merge remote-tracking branch 'origin/master' into elaborateErrorsOnce 2015-01-29 11:27:39 -08:00
Daniel Rosenwasser
e4d3051532 Added Jason's example for contextually typing parameters. 2015-01-27 22:39:48 -08:00
Daniel Rosenwasser
26929ee5f2 Merge pull request #1816 from Microsoft/typeArgsInSuperCall
Contextually type parameters in super calls using type arguments on the base class.
2015-01-27 17:29:48 -08:00
Cyrus Najmabadi
71de2de6ed Merge branch 'master' into emitCleanup 2015-01-27 17:10:33 -08:00
Daniel Rosenwasser
40796b2c6d Added more tests. 2015-01-27 14:42:39 -08:00
Daniel Rosenwasser
8ee09dbe6e Addressed Jason's pedantic correction over the wording of a comment. 2015-01-27 13:36:10 -08:00
Anders Hejlsberg
9289cfb0b0 Merge pull request #1803 from Microsoft/enumUnionTypeGuard
Fixes to union types in type guards and instanceof
2015-01-27 06:52:03 -08:00
Anders Hejlsberg
5c3da7cc8c Merge branch 'master' into objectLiteralWidening
Conflicts:
	src/compiler/checker.ts
	tests/baselines/reference/intTypeCheck.errors.txt
2015-01-27 06:28:04 -08:00
Daniel Rosenwasser
93dbcf006f Contextually type parameters in super calls using type arguments on the base class. 2015-01-26 18:42:17 -08:00
Jason Freeman
ca8c446d3f Use transient symbols when computing the indexers for object literals 2015-01-26 16:48:53 -08:00
Anders Hejlsberg
0410394de0 Modifying test 2015-01-25 16:25:38 -08:00
Anders Hejlsberg
7f63180b64 Adding tests 2015-01-24 17:23:22 -08:00
Anders Hejlsberg
d6eb486c3a Accepting new baselines 2015-01-24 08:04:23 -08:00
Jason Freeman
9c9434b80f Merge branch 'master' into computedProperties
Conflicts:
	tests/baselines/reference/intTypeCheck.errors.txt
2015-01-23 11:45:53 -08:00
Cyrus Najmabadi
a82289c8b4 Emit comments in a lot more places. 2015-01-22 15:58:00 -08:00
Anders Hejlsberg
ccffc9f25f Adding more tests 2015-01-22 15:12:55 -08:00
Anders Hejlsberg
963de957cb Adding regression test 2015-01-22 14:52:15 -08:00
Cyrus Najmabadi
d2e96c1779 Simplify enum emit. 2015-01-22 14:45:55 -08:00
Anders Hejlsberg
21e6784038 Accepting new baselines 2015-01-22 11:04:09 -08:00
Jason Freeman
f7a8ba28ff Use isTypeOfKind in computed property checks 2015-01-21 17:01:42 -08:00
Jason Freeman
eeb4dc447b Merge branch 'master' into computedProperties 2015-01-21 15:51:31 -08:00
Anders Hejlsberg
2052ac3958 Merge pull request #1765 from Microsoft/unionTypeOperations
Correct handling of union types in expressions
2015-01-21 15:43:54 -08:00
Jason Freeman
768d818d27 Fix error message wording 2015-01-21 15:05:19 -08:00
Anders Hejlsberg
f34620db63 Modifying and adding tests 2015-01-21 13:55:07 -08:00
Sheetal Nandi
4d1182401c Type alias declaration is type only declaration and doesnt make module instantiated
Handles #1724
2015-01-21 11:18:42 -08:00
Jason Freeman
b022ccd430 Merge branch 'master' into computedProperties
Conflicts:
	src/compiler/checker.ts
2015-01-21 11:03:24 -08:00
Jason Freeman
de5aa6c0d2 Fix source map scope name for computed properties 2015-01-21 11:01:05 -08:00
Ryan Cavanaugh
96f8d6273e Missed a file 2015-01-21 10:06:13 -08:00
Sheetal Nandi
e8e2356afa Fixes the emit of comment when comment ends on last line
This fixes regression from 5a7500ca5e62d7e6c7863cf42d156e8bcdc3017c with addition of eof token
Handles #1714
2015-01-20 21:16:14 -08:00
Jason Freeman
eb7798fbb2 Skip computed properties on declaration emit 2015-01-20 18:29:04 -08:00
Jason Freeman
85219ee5e1 Check computed properties against indexers in classes 2015-01-20 17:07:55 -08:00
Ryan Cavanaugh
fa239326f0 Elaborate relational errors at least once when reporting them 2015-01-20 14:18:22 -08:00
Jason Freeman
89f36bb9c5 Disallow computed properties referencing type parameters from containing type 2015-01-19 18:44:15 -08:00
Jason Freeman
b5349a5038 Disallow super and fix this capturing for computed properties 2015-01-19 16:37:17 -08:00
Jason Freeman
4cc2722700 Disallow this in computed properties in classes 2015-01-19 16:37:10 -08:00
Jason Freeman
f943f6c486 Adjust error numbers 2015-01-19 16:37:07 -08:00
Jason Freeman
1973b42946 Indexers in object literals include computed property types 2015-01-19 16:37:03 -08:00
Jason Freeman
1b35a1be25 Contextual typing for computed properties 2015-01-19 16:37:00 -08:00
Jason Freeman
96b5f1fe43 Add tests for classes, methods, accessors with computed properties 2015-01-19 16:36:53 -08:00
Jason Freeman
de3eb36b2c Update baselines 2015-01-19 16:36:50 -08:00
Jason Freeman
4ac2b4b9c8 Add tests for object literals with computed properties 2015-01-19 16:36:43 -08:00
Jason Freeman
7192767a00 Add type checking for computed properties in object literals 2015-01-19 16:36:39 -08:00
Jason Freeman
ef06879a75 Create symbols for computed properties 2015-01-19 16:36:36 -08:00
Jason Freeman
d192fea774 Switch checkObjectLiteral to iterate over element declarations 2015-01-19 16:36:32 -08:00
Jason Freeman
15187e5e1d Enable computed properties 2015-01-19 16:36:28 -08:00
Anders Hejlsberg
a2ecaf60f0 Merge branch 'master' into tsconfig 2015-01-19 14:50:18 -08:00
Anders Hejlsberg
ee6f2faabb Accepting baselines for corrected error messages 2015-01-15 17:19:22 -08:00
Daniel Rosenwasser
5bcb52f9b0 Merge pull request #1676 from Microsoft/disallowOptionalBindingParameters
Disallow optional destructured parameters in implementation signatures.
2015-01-15 16:55:14 -08:00
Daniel Rosenwasser
2a11222050 'may not' -> 'cannot' 2015-01-15 16:29:50 -08:00