Anders Hejlsberg
6234e10601
Add additional tests
2018-12-10 13:22:24 -08:00
Anders Hejlsberg
c6ca3f8114
Add regression test
2018-12-10 13:21:41 -08:00
Wesley Wigham
67a2b896f6
Do not lookup name of default property symbols from the symbols value declaration ( #28711 )
2018-11-28 13:59:48 -08:00
Nathan Shively-Sanders
1f34a4e25f
Revert "Don't consider 'typeof a' as using 'a' ( #28528 )"
...
This reverts commit 0c4ceeec24f16f87e75386355c86ac38612a1175.
2018-11-26 14:49:43 -08:00
Daniel Rosenwasser
2e860f4d01
Added tests.
2018-11-26 12:02:17 -08:00
Wesley Wigham
96937fd592
Allow union signatures to merge when they have differing argument counts ( #28604 )
...
* Allow union signatures to merge when they have differing argument counts
* Accept updated baselines
* Adjust comments io changed tests
2018-11-19 17:05:28 -08:00
Andy
79b9fa51b6
Avoid infinite loop checking yield expression ( #21728 )
...
* Avoid infinite loop checking yield expression
* Revert now-unneeded change
* Revert test filename changes
2018-11-19 11:18:32 -08:00
Andy
ca7f78b8df
Fix typo ( #28526 )
2018-11-19 10:54:54 -08:00
Andy
b8a8ceae86
Handle merging unknownSymbol ( #28453 )
...
* Handle merging unknownSymbol
* mergeSymbol of unknown target returns source, not unknown
2018-11-19 10:51:58 -08:00
Wesley Wigham
608a8307ac
Dont emit module resolution errors when looking up specifiers for container symbols ( #28558 )
2018-11-16 17:15:40 -08:00
Andy
0c4ceeec24
Don't consider 'typeof a' as using 'a' ( #28528 )
...
* Don't consider 'typeof a' as using 'a'
* Also handle markPropertyAsReferenced
* Use isInTypeQuery
2018-11-16 08:35:36 -08:00
Wesley Wigham
b90d2910fb
Strongly typecheck unions of intrinsic tag names ( #28557 )
2018-11-15 13:46:32 -08:00
Nathan Shively-Sanders
6cee7c3080
Better nameless parameter implicit any error ( #28554 )
...
* Initial version, doesn't work for primitives yet.
Need to find out why.
* Primitives now work, plus improve error message
null and void don't even parse without parameter names so they are not
tested.
* Codefix: Add names to nameless parameters
* Improve error wording
* Add detail to error message
2018-11-15 12:45:39 -08:00
Aziz Khambati
24759b81e6
Fix comments after sread expression, spread assignment ( #28482 )
2018-11-14 14:20:07 -08:00
Wesley Wigham
7a71887c23
Build better import paths for declaration emit/typeToString from reexports if possible ( #27340 )
...
* Build better import paths from reexports if possible, issue error on node_modules import generation
* Small refactorings
* Add file-by-file cacheing
* Minor cleanups
* Adjust error message
2018-11-13 14:07:54 -08:00
Daniel Rosenwasser
25462beeb7
Merge pull request #28456 from Microsoft/nonExperimentalBigInt
...
BigInt shouldn't be considered experimental
2018-11-12 15:59:15 -08:00
Daniel Rosenwasser
9e92597ae7
More general test case name.
2018-11-12 14:52:44 -08:00
Daniel Rosenwasser
e4bb1973ed
Fixed up flags on test cases and stray newline.
2018-11-12 14:52:44 -08:00
Daniel Rosenwasser
830be0651c
Merge pull request #27669 from Microsoft/betterErrorForAccidentalCall
...
Always emit diagnostic when a call expression can be fixed by adding a semicolon
2018-11-12 14:50:23 -08:00
Wesley Wigham
13234b62f5
Force inner indexed access simplification during inference, if possible ( #28420 )
...
* Force inner indexed access simplification during inference, if possible
* rename
* Refactor to used shared implementation of distribution
2018-11-12 14:39:43 -08:00
Wesley Wigham
eb21eb8e11
Ensure all default type params are mapped to some default even in circular scenarios ( #28423 )
...
* Ensure all default type params are mapped to some default even in circular scenarios
* Add js example, fix typo
2018-11-12 13:52:47 -08:00
Sheetal Nandi
cce26c8ff1
When serializing conditional types, use true and false type to determine emit
...
Fixes #27999
2018-11-12 09:23:29 -08:00
Klaus Meinhardt
3dfd9c1b9b
Add test for #28468
2018-11-11 18:47:02 +01:00
Wesley Wigham
7d4e0e6297
Fix duplicated amd module comments in declaration bundle ( #28451 )
2018-11-09 17:18:34 -08:00
Daniel Rosenwasser
15f2f047f8
Updated test case.
2018-11-09 16:21:06 -08:00
Wesley Wigham
89fda5ca83
Fix enum const initializer visibility painting ( #28415 )
2018-11-08 12:33:54 -08:00
Sheetal Nandi
b534fb4849
Merge pull request #27980 from EECOLOR/leading-slash-imports
...
match leading slash imports with path mappings - fixes #13730
2018-11-08 09:20:45 -08:00
EECOLOR
1a9c20949e
path mappings now supports rooted disk paths and urls - fixes #13730
2018-11-07 22:19:04 +01:00
Wesley Wigham
d351610e7a
Update opposite direction of #28218 ( #28384 )
2018-11-06 13:52:35 -08:00
Wesley Wigham
d7390c03f0
Avoid elaborating on generic indexes ( #28294 )
2018-11-06 12:51:11 -08:00
Wesley Wigham
cc36e294cc
Add related span pointing to this-shadowing location for implicitly-any this ( #28299 )
...
* Add diagnostic pointing to this-shadowing location
* Fix almost-top-level-this case
* Change message on span
2018-11-06 11:27:07 -08:00
Wesley Wigham
929791868f
Make for..in expressions allowed to be null/undefined ( #28348 )
2018-11-05 17:23:19 -08:00
Sheetal Nandi
576fdf98d7
Merge pull request #25886 from calebsander/feature/bigint
...
BigInt support
2018-11-05 13:08:48 -08:00
Andy
f37101e871
Fix bug when augmenting parent-less symbol ( #28345 )
2018-11-05 12:57:33 -08:00
Caleb Sander
bb99c41230
Don't error on bigint literal used in type
2018-11-05 12:23:02 -08:00
Caleb Sander
6c59a3b890
Fix ambient initializer emit for bigint
2018-11-05 11:36:33 -08:00
Caleb Sander
ecd12453f4
Add test for bigint property
2018-11-05 11:36:32 -08:00
Caleb Sander
28e9ec497c
Address review comments
2018-11-05 11:36:32 -08:00
Caleb Sander
a93131319e
Add bigint tests
2018-11-05 11:36:32 -08:00
Caleb Sander
95c24c6c6a
experimentalBigInt compiler flag
2018-11-05 11:36:31 -08:00
Wesley Wigham
eba83f4ea7
Add related span for mixin constructor error ( #28319 )
...
* Add related span for mixin constructor error
* Remove unneeded casts
* Nicer style
2018-11-02 17:29:05 -07:00
Wesley Wigham
deeee77f18
Check destructuring validity the same way element accesses and indexed accesses are checked ( #24700 )
...
* Check destructuring validity the same way element accesses and indexed accesses are checked
* Accept updated test baseline
* Use raw apparent type instead of passing in flag to sometimes make one
* Use `checkComputedPropertyName`
2018-11-01 13:46:41 -07:00
Wesley Wigham
3a2f7c0df1
Allow intersections of readonlys to be assignable to a readonly intersection ( #28218 )
...
* Allow intersections of readonlys to be assignable to a readonly intersection
* Add real motivating react example to test suite
2018-10-31 14:09:12 -07:00
Anders Hejlsberg
8e4b90da00
Merge pull request #28234 from Microsoft/genericSpread
...
Generic spread expressions in object literals
2018-10-31 12:52:16 -07:00
Anders Hejlsberg
2ed627aaf1
Update tests
2018-10-30 16:33:14 -07:00
Wesley Wigham
e2436f331a
Use constraint for default default value if possible ( #28222 )
2018-10-30 14:55:30 -07:00
Wesley Wigham
4cfff8962c
Fix declaration emit for cross-file enums ( #28237 )
2018-10-30 14:55:01 -07:00
Andy
176627c818
Support augmenting module with export as namespace ( #27281 )
...
* Support augmenting module with `export as namespace`
* Warn on use of merged symbol containing 'export as namespace'
2018-10-30 11:16:26 -07:00
Andy
24febc2445
Allow to combine --resolveJsonModule with --isolatedModules ( #28207 )
2018-10-29 11:56:49 -07:00
Wesley Wigham
a6952887e9
Use same condition in isReferencedAliasDeclaration as isAliasResolvedToValue ( #28171 )
2018-10-29 09:38:10 -07:00