2026 Commits

Author SHA1 Message Date
Nathan Shively-Sanders
a0fa8ae6c4 Address most PR comments
I am still working on the error for class expressions that extend from a
non-exported base.
2017-05-22 10:18:31 -07:00
Nathan Shively-Sanders
e77024915e Test:decl emit for class expressions as type lits
Add test and update baselines
2017-05-18 09:11:26 -07:00
Arthur Ozga
bba41a8a0c avoid ascii escaping literal text 2017-05-15 18:42:49 -07:00
Ron Buckton
3521b9c546 if a JSSpecialPropertyDeclaration has a JSDoc type, use it 2017-05-11 16:23:05 -07:00
Nathan Shively-Sanders
7803c1ce17 Test:reference ambient block scoped vars in different file 2017-05-11 11:38:26 -07:00
Andy
066bb16173 Merge pull request #15539 from Microsoft/isolated-modules_export-star
Never elide an `export *` when `--isolatedModules` is set
2017-05-10 17:59:08 -07:00
Andy
2ba89fc534 Merge pull request #15538 from Microsoft/isolated-modules_re-export-type
Don't allow to re-export a type when '--isolatedModules' is set
2017-05-10 17:58:49 -07:00
Nathan Shively-Sanders
2f0e34149d Merge pull request #15740 from Microsoft/emit-expression-in-extends-nested
Correctly emit expression in extends in namespace
2017-05-10 12:41:11 -07:00
Nathan Shively-Sanders
cf2c88c398 Test: no declare in declaration tmp in namespace 2017-05-10 11:48:32 -07:00
Herrington Darkholme
1bbc94fc67 fix #15666: mark file as optional in Diagnostic 2017-05-10 12:29:53 +08:00
Mohamed Hegazy
a2dec0d03d Fix #15062: report errors for parameter properties in private constructors 2017-05-09 12:03:08 -07:00
Nathan Shively-Sanders
370b5618a0 Merge branch 'master' into spelling-correction 2017-05-09 10:01:03 -07:00
Nathan Shively-Sanders
2e9143aaf0 Clean up test a little 2017-05-08 11:36:30 -07:00
Nathan Shively-Sanders
5ad2ced0c3 Update test with trickier case from #15616 2017-05-08 11:03:41 -07:00
Anders Hejlsberg
c39a683504 Merge pull request #15576 from Microsoft/typeVariableTypeGuards
Improve type guards for type variables
2017-05-07 10:52:29 -07:00
Ron Buckton
ada4b3d4d8 Fix var emit order for converted loops 2017-05-05 17:38:23 -07:00
Sheetal Nandi
96aca4c7d0 Merge pull request #13540 from Microsoft/metadataReferences
Mark as referenced aliases in Union that will get emitted as part of decorator metadata
2017-05-04 15:04:13 -07:00
Andy
7fe1aba82a Merge pull request #15557 from Microsoft/unused-type-parameter
Mark type arguments as used even if used in an invalid way
2017-05-04 14:15:16 -07:00
Ron Buckton
500dd16bc1 Merge pull request #15590 from Microsoft/fix15471
Add check for tslib __await helper
2017-05-04 13:59:54 -07:00
Ron Buckton
cbeb11eabf Add check for tslib __await helper 2017-05-04 13:13:10 -07:00
Anders Hejlsberg
a6dfd66fc1 Update tests 2017-05-04 10:20:13 -07:00
Nathan Shively-Sanders
3e85ac0627 Test:index constraint check on js class expression 2017-05-04 10:12:49 -07:00
Anders Hejlsberg
238067eb3b Add tests 2017-05-03 21:28:17 -07:00
Nathan Shively-Sanders
9eaf40bded Merge branch 'master' into spelling-correction 2017-05-03 15:34:32 -07:00
Nathan Shively-Sanders
4877343538 Reduce max number of spelling suggestions to 10 2017-05-03 10:10:13 -07:00
Andy Hanson
ac7429535e Mark type arguments as used even if used in an invalid way 2017-05-03 09:10:49 -07:00
Andy Hanson
e696bbcd22 Never elide an export * when --isolatedModules is set 2017-05-02 14:13:42 -07:00
Andy Hanson
241f54edc7 Don't allow to re-export a type when '--isolatedModules' is set 2017-05-02 14:05:05 -07:00
Vladimir Kurchatkin
d45d289f36 Allow indexed access to empty property
Fixes: https://github.com/Microsoft/TypeScript/issues/15209
2017-05-02 01:39:02 +03:00
Nathan Shively-Sanders
ca7d7f5946 Only 100 spelling corrections for unknown symbols
If your compilation has more than 100 unknown symbols, the problem is
missing declarations, not typos.
2017-05-01 12:58:42 -07:00
Ron Buckton
1d1ebd0d70 Do not rename references to class inside of the class body function 2017-04-25 13:30:07 -07:00
Nathan Shively-Sanders
c6bf6a20a9 Merge pull request #15357 from Microsoft/es2015-transform-accessors-containing-captured-this
es2015 transform covers accessors that contain captured this
2017-04-25 08:36:53 -07:00
Nathan Shively-Sanders
a94198eb37 Test contextual type of object spread expressions
And update baselines.
2017-04-24 15:44:07 -07:00
Nathan Shively-Sanders
00848fc46f Test ES2015 transform of accessors w/captured this 2017-04-24 14:48:25 -07:00
Anders Hejlsberg
85d4593033 Add regression test 2017-04-22 17:09:20 -07:00
Mohamed Hegazy
24814ec387 Merge pull request #15260 from Microsoft/Fix15200
Fix #15200: Query for semantic errors on .js files with '@ts-check' with no config file
2017-04-20 13:46:52 -07:00
Ron Buckton
6c176138ca Fix loop block scope binding in generator 2017-04-19 17:06:12 -07:00
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
Mohamed Hegazy
8c33a792b3 Do not query for bind errors if skipLibCheck or skipDefaultLibCheck is set 2017-04-18 16:19:58 -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
Sheetal Nandi
b292077bc5 Merge branch 'master' into metadataReferences 2017-04-14 10:04:30 -07:00