Anders Hejlsberg
96706a75ed
Merge pull request #29510 from Microsoft/constContexts
...
Const contexts for literal expressions
2019-01-30 15:55:47 -08:00
Ryan Cavanaugh
0df89cc96f
Merge pull request #26941 from jack-williams/narrow-unknown-with-triple-equals
...
Fix #25172 : Add narrowing for `unknown` with triple equals
2019-01-29 16:43:50 -08:00
Anders Hejlsberg
08fe06f527
Merge branch 'master' into constContexts
...
# Conflicts:
# src/compiler/checker.ts
2019-01-29 12:29:30 -08:00
Anders Hejlsberg
e290559057
Add tests for decorators and declaration emit from error free source
2019-01-26 14:57:02 -08:00
Anders Hejlsberg
4706a060a5
Merge branch 'master' into readonlyArrayTuple
2019-01-26 14:44:15 -08:00
Jack Williams
36cc154985
Narrow to any primitive or object and update tests
2019-01-25 09:41:34 +00:00
Jack Williams
1f2338bd78
Update test file and baselines
2019-01-25 09:41:34 +00:00
Jack Williams
267e5989cd
Add narrowing for unknown with strict equal
2019-01-25 09:41:34 +00:00
Ryan Cavanaugh
16b6706ee1
Merge pull request #29463 from jack-williams/check-in-expression-with-union
...
Fix #29457
2019-01-24 13:07:22 -08:00
Anders Hejlsberg
2e94f47602
Add tests
2019-01-19 10:34:38 -08:00
Pranav Senthilnathan
d38c616e29
Fix resolution of properties from prototype assignment in JS ( #29302 )
...
* fix type derived from prototype assignment
* accept new baselines
* remove direct intersection with object literal assigned to prototype
* add tests
* change webpack submodule commit
* fix submodule commits
* comment and simplify getJSDocTypeReference
* remove circularity guards that aren't hit anymore
2019-01-18 16:00:18 -08:00
Anders Hejlsberg
2200d35385
Add tests
2019-01-18 09:34:38 -08:00
Jack Williams
5651789629
Fix #29457
...
Use allTypesAssignableToKind instead of isTypeAssignableToKind to
account for union types.
2019-01-17 20:03:46 +00:00
Wesley Wigham
045a450972
Merge branch 'fix-generic-types-intersections' of git://github.com/flapenguin/TypeScript into flapenguin-fix-generic-types-intersections
2019-01-17 10:49:04 -08:00
Anders Hejlsberg
0eac506fc0
Add .d.ts generation test
2019-01-16 12:45:33 -08:00
Anders Hejlsberg
2ccc106984
Add more tests
2019-01-16 09:46:28 -08:00
Wesley Wigham
41a7bf4b73
Fake up value declaration for synthetic jsx children symbol so they get excess property checked ( #29359 )
2019-01-15 22:31:57 -08:00
Anders Hejlsberg
cff7874288
Add tests
2019-01-15 14:44:57 -08:00
Ron Buckton
5763e2c3d4
Remove overzealous simple relationship check for unique symbols
2019-01-14 17:08:04 -08:00
Gabriela Britto
e5708e1903
Merge pull request #29352 from Microsoft/qualified-name-param-tag-error
...
Qualified name param tag error
2019-01-14 10:28:08 -08:00
Martin Probst
f3f5877c5f
Add tests for noLib with <reference lib> and bundling.
2019-01-11 09:02:49 +01:00
Martin Probst
cc7ddaed28
Add tests for noLib with <reference lib>.
2019-01-11 09:02:49 +01:00
Gabriela Britto
b3633fab52
Add more tests for qualified name param without top level object error
2019-01-10 15:04:16 -08:00
Gabriela Britto
ebe193c6d7
Minor refactor in paramTagNestedWithoutTopLevelObject.ts
2019-01-10 14:05:10 -08:00
Gabriela Britto
e2524e3750
Add test for qualified name param without top level object error
2019-01-10 09:55:06 -08:00
Anders Hejlsberg
9fda7014ca
Add regression tests
2019-01-09 16:16:24 -08:00
Anders Hejlsberg
7ad2661625
Add tests
2018-12-21 12:51:01 -08:00
Anders Hejlsberg
3e0639add5
Merge pull request #29053 from Microsoft/fixDestructuringControlFlow
...
Fix destructuring control flow analysis
2018-12-19 11:12:41 -08:00
Anders Hejlsberg
519c501ea5
Add regression test
2018-12-18 11:58:06 -08:00
Anders Hejlsberg
307a9b66af
Add tests
2018-12-16 07:23:28 -08:00
Anders Hejlsberg
77d01ab332
Update tests
2018-12-11 15:12:47 -08:00
Anders Hejlsberg
2150a64f0c
Add tests
2018-12-11 12:11:16 -08:00
Anders Hejlsberg
45411e525c
Add tests
2018-12-10 16:30:30 -08:00
Daniel Rosenwasser
3e6a666b5e
Merge pull request #28919 from a-tarasyuk/feature/28893-allow-trailing-comma-on-tuple-types
...
feature/28893 allow trailing comma on tuple types
2018-12-10 11:33:33 -08:00
Anders Hejlsberg
cd6d2fdc18
Merge pull request #28940 from Microsoft/explicitUnknownConstraint
...
Type parameter constrained to 'unknown' not assignable to '{}'
2018-12-10 10:29:06 -08:00
Anders Hejlsberg
d2cc282134
Add tests
2018-12-10 09:45:55 -08:00
Anders Hejlsberg
7a0779288f
Add tests
2018-12-10 09:14:41 -08:00
Alexander
e219b17ff0
TupleType - add additional tests to handle error on extra comma
2018-12-08 20:50:09 +02:00
Anders Hejlsberg
4ae0848bd4
Add tests
2018-12-05 15:20:21 -08:00
Anders Hejlsberg
3e2f130b3c
Add regression test
2018-12-04 13:18:04 -08:00
Anders Hejlsberg
d832fbf46a
Add regression test
2018-11-28 14:58:11 -08:00
Andrey Roenko
bea7ed1aa7
Merge branch 'master' into fix-generic-types-intersections
2018-11-20 20:31:02 +03: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
Nathan Shively-Sanders
0774bb81ce
Fix crash on property assignment of unresolved module ( #28606 )
...
Previously, the compiler would crash when binding a non-top-level
property assignment on the symbol of an unresolved module:
```js
import x from 'arglebaz'
{
x.bar = 1
}
```
That's because `x` looks like an alias but doesn't have a
valueDeclaration (since there is no file named 'arglebaz'), and the new
code for binding Object.defineProperty calls forgot to check for an
undefined valueDeclaration.
This change adds the checks for an undefined valueDeclaration.
2018-11-19 13:29:46 -08:00
Andy
e0dca0bd95
Error when destructuring private property in a parameter ( #28562 )
2018-11-16 12:47:05 -08:00
Nathan Shively-Sanders
53bb4e84a2
Better checking of assignment declarations ( #28387 )
...
Previously, type checking was turned off for all assignment
declarations. This is a problem when the declarations are annotated with
jsdoc types.
This PR checks assignment declarations, *except* for expando
initialisers. Expando initialisers are
1. Empty object types.
2. Function types.
3. Class types.
4. Non-empty object types when the assignment declaration kind is
prototype assignment or module.exports assignment.
2018-11-15 08:46:11 -08:00
Anders Hejlsberg
627f1ad876
Add regression tests
2018-11-09 06:45:21 +01:00
Anders Hejlsberg
48c0aedf54
Add tests
2018-11-02 08:20:06 -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