Commit Graph

1985 Commits

Author SHA1 Message Date
Nathan Shively-Sanders
a8593996f9 Merge pull request #15258 from Microsoft/mergeSymbol-uses-first-decl-not-valueDecl
mergeSymbol uses first declaration, not valueDeclaration
2017-04-19 08:47:43 -07:00
Nathan Shively-Sanders
eba15f41e4 Test:type alias merged w/interface-namespace errors
Previously it crashed when it assumed valueDeclaration was always
defined.
2017-04-18 16:19:05 -07:00
Nathan Shively-Sanders
2e43c869b4 Merge pull request #15257 from Microsoft/unknown-properties-are-assignable-to-Object-in-union
Unknown properties are assignable to `Object` in union
2017-04-18 15:21:46 -07:00
Nathan Shively-Sanders
8ab22217c1 Test:Unknown properties are assignable to Object in union
Add test and accept baselines
2017-04-18 14:58:27 -07:00
Mohamed Hegazy
6de4693118 Merge pull request #15240 from Microsoft/fixCrashFindingLocals
Check if container has locals before looking up properties
2017-04-18 14:40:26 -07:00
Mohamed Hegazy
e6ecfa46f0 Merge pull request #15229 from Microsoft/Fix15220
Fix #15220: Check for file on diagnostics before getting line map
2017-04-18 14:39:54 -07:00
Mohamed Hegazy
b7c416cdeb Check if container has locals before looking up properties 2017-04-17 16:26:49 -07:00
Nathan Shively-Sanders
aaf861af96 Remove TODO from test now that it's done 2017-04-17 15:25:36 -07:00
Nathan Shively-Sanders
42ac23a585 Test: typeof can refer to block-scoped var before declaration 2017-04-17 15:20:36 -07:00
Mohamed Hegazy
4546b0dd8e Make sure we have a node for the error in cases of special property assignment 2017-04-17 13:15:27 -07:00
Nathan Shively-Sanders
e5416b5dcc Merge pull request #15075 from Microsoft/fix-exponential-expanding-array-assignment
Evolving array element type ignores contextual type
2017-04-17 08:26:06 -07:00
Nathan Shively-Sanders
959187607d serializeTypeNode handles object
This was just overlooked earlier.
2017-04-14 09:28:31 -07:00
Nathan Shively-Sanders
d53b3ac43c Merge pull request #15032 from Microsoft/fix-anon-class-this-reference-caching
Do not walk up control flow containers for `this`
2017-04-13 15:10:01 -07:00
Nathan Shively-Sanders
8a599f662f Merge pull request #14090 from Microsoft/es5-emit-param-initialiser-before-object-rest
ES5:Emit parameter initialiser before object rest destructuring
2017-04-13 13:43:13 -07:00
Nathan Shively-Sanders
b2199bd23c Test:order of directives, initialisers, object spread destructuring 2017-04-13 10:35:50 -07:00
Anders Hejlsberg
014845a637 Merge pull request #15057 from Microsoft/fixExcessPropertyCheck
Fix excess property check
2017-04-12 15:54:32 -10:00
Nathan Shively-Sanders
11f715c724 Merge pull request #15036 from Microsoft/remove-readonly-from-spread-properties
Remove readonly from spread properties
2017-04-12 16:32:16 -07:00
Nathan Shively-Sanders
1671a06655 Test: object literal assignments->expanding arrays
Previously, the compiler would run out of memory for more than 13 or 14
of these assignments.
2017-04-07 11:14:16 -07:00
Anders Hejlsberg
69c30a0126 Add regression tests 2017-04-06 12:57:03 -07:00
Nathan Shively-Sanders
3029b8fe38 Merge pull request #14935 from Microsoft/allow-extending-from-any
Allow extending from any
2017-04-06 09:18:01 -07:00
Nathan Shively-Sanders
f635042255 Improve test and comments
Test asserts that unused locals error works for untyped modules.
Comment no longer claims to check for untyped modules.
2017-04-06 09:02:18 -07:00
Nathan Shively-Sanders
6879bc1ea1 Test that spread removes readonly from properties 2017-04-05 13:45:51 -07:00
Nathan Shively-Sanders
e09533d19d Update test comments to match property names 2017-04-05 13:08:21 -07:00
Yui
8941e5f7b0 Merge pull request #15006 from Microsoft/master-14895
[Master] Emit parenthesis around propert/element access expression of casted object literal expression
2017-04-05 13:03:24 -07:00
Nathan Shively-Sanders
db3431e3af Add this narrowing test and update previous test 2017-04-05 11:06:14 -07:00
Kanchalai Tanglertsampan
33524bd18c Update test and baseline 2017-04-05 10:26:28 -07:00
Ron Buckton
41fb0aaf6c Merge pull request #14995 from Microsoft/cleanupLiteralEmit
Clean up literal emit
2017-04-04 22:10:46 -07:00
Anders Hejlsberg
9d2b57ad9e Merge pull request #15011 from Microsoft/limitDeepInstantiations
Limit deep generic type instantiations
2017-04-04 20:28:33 -07:00
Anders Hejlsberg
90648fd9eb Merge pull request #14991 from Microsoft/fixTypeRelationStackOverflow
Fix type relation stack overflow
2017-04-04 20:28:16 -07:00
Anders Hejlsberg
68ab129fac Add regression test 2017-04-04 14:53:48 -07:00
Nathan Shively-Sanders
4214aed37d Test:static inits can refer to later static methods 2017-04-04 14:50:42 -07:00
Kanchalai Tanglertsampan
0a194f91a0 Emit parenthesis around propert/element access expression of casted object literal expression 2017-04-04 11:15:03 -07:00
Nathan Shively-Sanders
013d52a44d Merge pull request #14952 from Microsoft/fix-scope-checks-of-class-properties
Fix scope checks of class properties
2017-04-04 08:45:31 -07:00
Andy Hanson
24b09d8502 Only bind JSDoc typedefs in JavaScript files 2017-04-03 15:00:40 -07:00
Ron Buckton
fd081f40a8 Clean up literal emit 2017-04-03 14:17:03 -07:00
Anders Hejlsberg
545a7f2987 Merge branch 'master' into fixTypeRelationStackOverflow
# Conflicts:
#	tests/baselines/reference/mappedTypeRelationships.errors.txt
2017-04-03 12:46:04 -07:00
Anders Hejlsberg
0f0a8a17dc Add regression tests 2017-04-03 12:32:54 -07:00
Nathan Shively-Sanders
a62869c81e Merge pull request #14657 from erikmcc/master
Allow export default abstract class. Related to issue 3792.
2017-03-31 14:56:39 -07:00
Nathan Shively-Sanders
f65819a253 Test:props of class A are usable in prop initialisers of class B
Regardless of order of class A and class B
2017-03-31 12:05:12 -07:00
Nathan Shively-Sanders
650cc29219 Test: extending from any 2017-03-29 16:10:27 -07:00
Mohamed Hegazy
a8aa070fe6 Merge pull request #14900 from Microsoft/Fix14892
Fix #14892: Add undefined check before using the intializer of for-statment
2017-03-29 09:31:00 -07:00
Kanchalai Tanglertsampan
42f398076d Merge branch 'master' into master-14217
# Conflicts:
#	tests/baselines/reference/classOrder2.errors.txt
#	tests/baselines/reference/es5ExportDefaultClassDeclaration3.symbols
#	tests/baselines/reference/es5ExportDefaultClassDeclaration3.types
#	tests/baselines/reference/mappedTypeRelationships.errors.txt
#	tests/baselines/reference/privacyClassExtendsClauseDeclFile.errors.txt
2017-03-29 08:51:39 -07:00
Ron Buckton
62e8881f9b Merge pull request #14907 from Microsoft/jsGenericDefaultsAny
Default to 'any' for unsupplied generics in JavaScript
2017-03-28 16:34:57 -07:00
Mohamed Hegazy
74dd1c0558 Handel empty intializer in system module emit 2017-03-28 10:19:09 -07:00
Mohamed Hegazy
115c008694 Fix #14892: Add undefined check before using the intializer of for-statement 2017-03-28 10:06:36 -07:00
Mohamed Hegazy
8ea961714b Merge remote-tracking branch 'origin/master' into checkJSFiles 2017-03-27 21:23:26 -07:00
Mohamed Hegazy
0637f241b7 Merge remote-tracking branch 'origin/master' into checkJSFiles 2017-03-27 21:23:07 -07:00
Anders Hejlsberg
1ae5bef80d Merge pull request #14874 from Microsoft/fixIndexedAccessRelation
Fix stack overflow in indexed access relation
2017-03-28 06:19:59 +02:00
Mohamed Hegazy
3378f5cb38 Merge branch 'master' into checkJSFiles 2017-03-27 10:46:40 -07:00
Anders Hejlsberg
0b8a9fc3d0 Add regression test 2017-03-27 11:44:49 +02:00