Anders Hejlsberg
0a37cd3736
Update test
2018-04-10 17:35:27 -10:00
Anders Hejlsberg
0379666bbf
Update tests
2018-04-09 08:51:55 -10:00
Nathan Shively-Sanders
154ac342cb
Allow extending any, with noImplicitAny errors ( #23153 )
...
Allow extending any, without noImplicitAny errors
2018-04-05 08:52:56 -07:00
Anders Hejlsberg
6646717ce7
Merge pull request #23112 from Microsoft/fixTPReferenceLookups
...
Fix type parameter reference lookups
2018-04-03 12:32:05 -07:00
Anders Hejlsberg
cdf155e980
Add regression test
2018-04-03 09:04:36 -07:00
Nathan Shively-Sanders
11eabc0946
Skip parens and non-null assertions when looking for this-context ( #23097 )
...
* Skip parens and ! for getting this-context of call
* Add test and improve code a bit
* Use skipOuterExpressions instead
2018-04-03 06:23:59 -07:00
Anders Hejlsberg
751eab9eed
Merge pull request #23067 from Microsoft/fixTPReferenceInConditional
...
Fix type parameter reference checks in conditional types
2018-04-02 17:30:32 -07:00
Wesley Wigham
414bc49cc4
Module or import
types ( #22592 )
...
* Type side of import types
* Value side of import types
* Accept library changes
* Refined implementation, more tests
* Allow resolutions to be performed late if the resolution still results in a file already in the build
* Add another test case
* Add some jsdoc usages
* Allow nodebuilder to use import types where appropriate
* Parse & check generic instantiations
* use import types in nodebuilder for typeof module symbols
* Wire up go to definition for import types
* Accept updated type/symbol baselines now that symbols are wired in
* PR feedback
* Fix changes from merge
* Walk back late import handling
* Remove unused diagnostic
* Remove unrelated changes
* Use recursive function over loop
* Emit type arguments
* undo unrelated change
* Test for and support import type nodes in bundled declaration emit
2018-04-02 10:18:23 -07:00
Anders Hejlsberg
ec02ccd575
Add regression test
2018-04-02 09:23:00 -07:00
Anders Hejlsberg
b3829523b2
Merge pull request #23039 from Microsoft/fixConditionalConstraints
...
Improve conditional type constraints
2018-03-31 11:56:05 -07:00
Anders Hejlsberg
b84e05e669
Add tests
2018-03-30 16:21:16 -07:00
Anders Hejlsberg
7714a2bb5b
Merge pull request #22989 from Microsoft/fixImpliedConstraint
...
Fix implied constraints in conditional types
2018-03-29 17:06:16 -07:00
Andy
a9aca81601
Error on for (const x in never)
( #22988 )
...
* Error on `for (const x in never)`
* Update diagnostic
* Provide argument to diagnostic
2018-03-29 11:39:30 -07:00
Anders Hejlsberg
bd442b7e52
Add regression test
2018-03-29 10:22:11 -07:00
Andy
65659d7297
Don't allow to iterate over 'never' ( #22964 )
...
* Don't allow to iterate over 'never'
* Include type in error message
2018-03-29 10:01:21 -07:00
Anders Hejlsberg
83276ce163
Add another test
2018-03-28 15:21:29 -07:00
Anders Hejlsberg
0e446fe8c2
Add regression test
2018-03-28 13:16:29 -07:00
Anders Hejlsberg
5b1554f708
Change test to use type variables
2018-03-25 15:30:46 -07:00
Anders Hejlsberg
8f860f672f
Add tests
2018-03-25 11:33:24 -07:00
Anders Hejlsberg
7c0cc84abd
Add tests
2018-03-25 11:30:08 -07:00
Anders Hejlsberg
e5f6ed0b60
Merge pull request #22707 from Microsoft/fixIndexedAccessInConditionalType
...
Fix indexed access in conditional type
2018-03-21 15:18:39 -07:00
Anders Hejlsberg
eb3fd150a7
Add regression test
2018-03-21 13:35:15 -07:00
Anders Hejlsberg
4fef35cdd0
Add regression test
2018-03-21 10:03:48 -07:00
Anders Hejlsberg
fa8564fa9e
Add test to verify errors on nested 'infer T' declarations
2018-03-21 10:03:07 -07:00
Anders Hejlsberg
c94d28dbc8
Add test
2018-03-21 06:47:57 -07:00
Wesley Wigham
eaabf920eb
Combine keyof T inferences ( #22525 )
...
* Combine keyof T inferences
* Extract covariant inference derivation into function
* Test:keyof inference lower priority than return inference
for #22376
* Update 'expected' comment in keyofInferenceLowerPriorityThanReturn
* Update comment in test too, not just baselines
* Fix typo
* Move tests
2018-03-19 16:56:51 -07:00
Anders Hejlsberg
16f571b026
Add tests
2018-03-19 16:29:00 -07:00
Ron Buckton
ea9f999dfc
Merge branch 'master' into vfs
2018-03-08 10:46:36 -08:00
Anders Hejlsberg
19e07eaea6
Add tests
2018-03-04 16:49:06 -08:00
Anders Hejlsberg
081a394927
Add regression test
2018-03-03 18:08:36 -08:00
Anders Hejlsberg
95bb156a3e
Add tests
2018-03-02 09:26:52 -08:00
Anders Hejlsberg
3fca99522b
Update tests
2018-02-28 06:39:36 -08:00
Anders Hejlsberg
c9c282b2d7
Update test
2018-02-27 15:15:08 -08:00
Anders Hejlsberg
b9e06bfd38
Merge branch 'master' into fixConditionalTypes
...
# Conflicts:
# src/compiler/checker.ts
2018-02-26 14:50:23 -08:00
Anders Hejlsberg
3ad62ef3d6
Update tests
2018-02-26 14:26:26 -08:00
Anders Hejlsberg
3de1cd6f2d
Add regression tests
2018-02-14 09:20:13 -08:00
Anders Hejlsberg
23162c2638
Add tests
2018-02-13 06:48:03 -08:00
Anders Hejlsberg
318e53cecb
Merge branch 'master' into fixIndexedAccessWildcard
...
# Conflicts:
# tests/baselines/reference/conditionalTypes1.errors.txt
# tests/baselines/reference/conditionalTypes1.js
# tests/baselines/reference/conditionalTypes1.symbols
# tests/baselines/reference/conditionalTypes1.types
# tests/cases/conformance/types/conditional/conditionalTypes1.ts
2018-02-10 17:29:06 -08:00
Anders Hejlsberg
2e1dcd666c
Add regression test
2018-02-10 17:10:44 -08:00
Anders Hejlsberg
fadf031088
Merge branch 'master' into fixStructuralIdentity
...
# Conflicts:
# tests/baselines/reference/conditionalTypes1.errors.txt
# tests/baselines/reference/conditionalTypes1.js
# tests/baselines/reference/conditionalTypes1.symbols
# tests/baselines/reference/conditionalTypes1.types
# tests/cases/conformance/types/conditional/conditionalTypes1.ts
2018-02-09 16:16:02 -08:00
Anders Hejlsberg
92b8ce7821
Update tests
2018-02-09 14:22:57 -08:00
Anders Hejlsberg
35f1fcbe85
Add tests
2018-02-09 13:02:21 -08:00
Anders Hejlsberg
e54606b7bf
Add tests
2018-02-08 17:14:52 -08:00
Anders Hejlsberg
22fbb8edce
Merge pull request #21744 from Microsoft/fixGetConstrainedTypeParameter
...
Fix getConstrainedTypeParameter function
2018-02-07 16:37:10 -08:00
Anders Hejlsberg
7ad8182af2
Merge pull request #21737 from Microsoft/fixDeferredConditional
...
Fix definitely false check in conditional types
2018-02-07 14:59:40 -08:00
Anders Hejlsberg
94e0df39cc
Add regression test
2018-02-07 14:55:04 -08:00
Anders Hejlsberg
e3c137ce37
Add regression tests
2018-02-07 12:48:55 -08:00
Anders Hejlsberg
2dcd83c954
Add test
2018-02-07 06:57:43 -08:00
Anders Hejlsberg
1f3af4eab2
Add tests
2018-02-06 17:33:02 -08:00
Anders Hejlsberg
cac6b5b985
Add regression test
2018-02-06 12:41:04 -08:00
Ron Buckton
3b73ce49d7
Merge pull request #21585 from Microsoft/fix21584
...
Fix initializer assignability for unique symbol
2018-02-06 11:30:12 -08:00
Ron Buckton
1efb84447c
Merge branch 'master' into vfs
2018-02-05 23:36:14 -08:00
Ron Buckton
4eb3b6b016
Merge branch 'master' into vfs
2018-02-05 11:30:06 -08:00
Anders Hejlsberg
4c9e6499d5
Add tests
2018-02-05 06:48:38 -08:00
Anders Hejlsberg
a712344733
Add tests
2018-02-03 09:44:47 -08:00
Ron Buckton
6f792f5aec
Fix initializer assignability for unique symbol
2018-02-02 13:13:21 -08:00
Anders Hejlsberg
afec056bab
Add more error case checks
2018-01-31 07:48:45 -08:00
Anders Hejlsberg
7c241ba2f7
Merge branch 'conditionalTypes' into inferTypes
...
# Conflicts:
# src/compiler/checker.ts
# tests/cases/fourslash/completionInJSDocFunctionNew.ts
# tests/cases/fourslash/completionInJSDocFunctionThis.ts
2018-01-30 13:40:16 -08:00
Anders Hejlsberg
34505c1019
Add tests
2018-01-30 08:11:49 -08:00
Anders Hejlsberg
4f2b5f32f9
Merge branch 'master' into conditionalTypes
2018-01-30 06:42:14 -08:00
Ron Buckton
87de5ffb5c
Merge branch 'master' into vfs
2018-01-22 02:25:22 -08:00
Anders Hejlsberg
eb314d00fc
Add tests
2018-01-20 08:17:59 -08:00
Nathan Shively-Sanders
485ec34e8e
Test assignability of indexed access types
2018-01-17 13:22:31 -08:00
Nathan Shively-Sanders
7dbea0e82d
Merge branch 'master' into fix2-getConstraintOfIndexedAccess
2018-01-10 12:40:35 -08:00
Ron Buckton
e426257d8c
Revert more baselines, add jake task for typemock
2017-12-19 13:40:32 -08:00
Ron Buckton
7944f5082b
Merge branch 'master' into vfs
2017-12-18 12:12:51 -08:00
Nathan Shively-Sanders
4bc0d85d29
Test:spread object
retains lefthandside
...
1. Make sure that spreading `object` doesn't lose everything to the left.
2. Update baselines to show that `{ ...object }` is now `{}`.
2017-12-12 08:37:34 -08:00
Nathan Shively-Sanders
dd0fa41de1
Merge branch 'master' into fix2-getConstraintOfIndexedAccess
2017-12-04 15:26:02 -08:00
Wesley Wigham
e684f30d18
Fix build in the presence of definite assignment analysis ( #20170 )
2017-11-20 14:49:15 -08:00
Anders Hejlsberg
3d153e2ac3
Add tests
2017-11-19 09:50:45 -08:00
Ron Buckton
a21a129abb
Merge branch 'master' into dynamicNames
2017-11-15 15:24:05 -08:00
Nathan Shively-Sanders
8a7b8445de
Merge pull request #19655 from Microsoft/instantiate-this-in-type-parameter-constraints
...
Instantiate this when used only in type parameter constraints
2017-11-14 16:22:37 -08:00
Ron Buckton
804c7d3690
Merge branch 'master' into dynamicNames
2017-11-13 13:24:20 -08:00
Ron Buckton
ae11ae55c5
Fix getReturnTypeFromBody widening
2017-11-13 13:19:49 -08:00
Nathan Shively-Sanders
80d1a42179
Merge branch 'master' into instantiate-this-in-type-parameter-constraints
2017-11-13 13:13:38 -08:00
Nathan Shively-Sanders
39fd0bf2d1
Merge branch 'master' into fix-spread-contextually-typed-by-binding-pattern
2017-11-13 13:11:05 -08:00
Ron Buckton
4fbc74ec26
Partial deprecation of non-vfs TestServerHost
2017-11-12 21:05:28 -08:00
Ron Buckton
646c32cb09
Merge branch 'master' into vfs
2017-11-11 10:26:40 -08:00
Anders Hejlsberg
b8fbf884d0
Merge pull request #19926 from Microsoft/improvePrimitiveComparable
...
Bidirectional comparable relation for primitive types
2017-11-11 09:15:24 -08:00
Anders Hejlsberg
16b68ff25b
Fix typo
2017-11-10 13:46:51 -08:00
Anders Hejlsberg
d15926d9c7
Add test
2017-11-10 13:13:32 -08:00
Anders Hejlsberg
afec1e1fa1
Update test
2017-11-10 08:39:29 -08:00
Anders Hejlsberg
197c635994
Update tests
2017-11-10 08:36:50 -08:00
Ron Buckton
8245f6246d
Update Harness.compileFiles to use vfs
2017-11-09 16:01:33 -08:00
Nathan Shively-Sanders
c1c7926735
Revert "Add TupleBase with unusable mutating Array methods"
...
This reverts commits
4385444c44
,
2399d58
,
es55de3,
888da3c
2017-11-08 15:18:35 -08:00
Nathan Shively-Sanders
888da3c3da
Update baselines
2017-11-06 15:55:16 -08:00
Ron Buckton
33e09f9a9d
Merge branch 'master' into dynamicNames
2017-11-06 12:05:25 -08:00
Nathan Shively-Sanders
c2374c4ec3
Merge branch 'master' into 6229-known-length-tuples
2017-11-06 10:51:34 -08:00
Anders Hejlsberg
b5f4a83365
Merge pull request #19745 from Microsoft/emptyArrayInference
...
No inference from empty array literals
2017-11-06 10:45:45 -08:00
Nathan Shively-Sanders
868d36d51d
Merge pull request #19770 from Microsoft/remove-readonly-from-spread-index-sigs
...
Remove readonly from index signatures of a spread
2017-11-06 10:20:57 -08:00
Nathan Shively-Sanders
7788d293c4
Test:spread removes readonly from index signatures
2017-11-06 08:16:15 -08:00
Anders Hejlsberg
0a4f60e87b
Add tests
2017-11-04 17:26:12 -07:00
Anders Hejlsberg
9619dc14f9
Add tests
2017-11-04 08:08:28 -07:00
Ron Buckton
208dfa6b01
Merge branch 'master' into dynamicNames
2017-11-03 22:10:28 -07:00
Anders Hejlsberg
f701b1300f
Add tests
2017-11-03 14:40:06 -07:00
Nathan Shively-Sanders
a980d61f86
Add a few tuple tests and update baselines
2017-11-03 09:56:39 -07:00
Nathan Shively-Sanders
75882db684
Merge branch 'master' into 6229-known-length-tuples
2017-11-03 09:07:38 -07:00
Anders Hejlsberg
63f7029b9a
Add regression tests
2017-11-02 17:31:17 -07:00
Nathan Shively-Sanders
defd32f015
Move strict tuple test and add a couple of cases
2017-11-01 11:53:41 -07:00
Nathan Shively-Sanders
b228736596
Merge branch 'master' into 6229-known-length-tuples
2017-11-01 11:51:49 -07:00
Nathan Shively-Sanders
e0e1a3b078
Test:this instantiation in type parameters
...
Make sure that `this` gets instantiated when it's used as a constraint
of a type parameter, and nowhere else in a signature.
2017-11-01 09:17:52 -07:00
Ron Buckton
26ca98c820
Merge branch 'master' into dynamicNames
2017-10-30 18:02:53 -07:00
Anders Hejlsberg
ec2aecf90e
Add tests
2017-10-29 16:49:43 -07:00
Anders Hejlsberg
414f165df0
Add tests
2017-10-23 12:36:44 -07:00
Ron Buckton
51929acb89
Merge branch 'master' into dynamicNames
2017-10-21 00:36:52 -07:00
Ron Buckton
3341e07e67
Refactor widening
2017-10-20 22:52:20 -07:00
Anders Hejlsberg
f8d9079c47
Add regression test
2017-10-18 16:59:43 -07:00
Anders Hejlsberg
ee0715a073
Add tests
2017-10-14 11:13:40 -07:00
Nathan Shively-Sanders
0cb12b32a5
Test:{} in union from spread gets implicit index signature
...
Also tighten up the existing test code in the file.
2017-10-05 09:03:03 -07:00
Ron Buckton
51ded0be7f
Additional tests
2017-10-04 19:41:48 -07:00
Ron Buckton
ee23f93275
Switch to 'unique symbol'
2017-10-04 19:34:29 -07:00
Ron Buckton
43c151a9df
Merge branch 'master' into dynamicNames
2017-10-04 14:57:24 -07:00
Wesley Wigham
648bd6e9e0
Skip more lib checks, improve test execution time a bit more ( #18952 )
...
* Skip more lib checks, improve test execution time a bit more
* Change complexRecursiveCollections to still check
* Remove way more
2017-10-04 14:43:35 -07:00
Nathan Shively-Sanders
2c04b5510f
Test:spread contextually typed by binding pattern
2017-10-03 12:43:23 -07:00
Ron Buckton
891e71d44f
Remove freshness, more comprehensive grammar checks and diagnostic messages
2017-09-22 15:08:55 -07:00
Nathan Shively-Sanders
cb8d9d6143
Revert spread-falsy-union/fix spread of primitive
...
Turns out partialising falsy unions wasn't needed -- I was just
returning the wrong thing when spreading primitives.
2017-09-15 16:11:41 -07:00
Nathan Shively-Sanders
7497d4cb3a
Merge branch 'master' into allow-booleans-in-spreads
2017-09-15 10:26:57 -07:00
Nathan Shively-Sanders
f97d5fa11d
Update tests with improved spread-falsy-union rules
2017-09-15 10:06:58 -07:00
Nathan Shively-Sanders
18653a5c5d
Use removeDefinitelyFalsyTypes for building partial type
2017-09-14 11:18:48 -07:00
Anders Hejlsberg
2077835ff7
Merge pull request #18438 from Microsoft/unionIntersectionUnit
...
Remove empty intersection types in unit types
2017-09-14 18:44:02 +01:00
Nathan Shively-Sanders
d2e2faad5c
Update tests and baselines
2017-09-13 15:13:34 -07:00
Nathan Shively-Sanders
d951c14052
Allow all possibly falsy types in spreads
...
And update tests to reflect that
2017-09-13 14:56:15 -07:00
Nathan Shively-Sanders
9cddd1aca2
Update spread tests for booleans in spread types
2017-09-13 14:06:15 -07:00
Anders Hejlsberg
78f4cbe53c
Add tests
2017-09-13 06:37:59 -07:00
Anders Hejlsberg
9871c04e54
Add tests
2017-09-09 13:06:28 -07:00
Nathan Shively-Sanders
2f646daf0a
Move lone test case into central test file
2017-08-28 10:53:11 -07:00
Tycho Grouwstra
1f77317b64
add strictTuples flag giving tuples known length
2017-08-20 02:54:26 +08:00
Nathan Shively-Sanders
ecae295c5a
Test getConstraintOfIndexedAccess fixes and update baselines
2017-08-18 15:16:24 -07:00
Arthur Ozga
6b68da1185
Revert "Fix getConstraintOfIndexedAccess"
2017-08-18 11:32:53 -07:00
Nathan Shively-Sanders
1b4f90705f
Test getConstraintOfIndexedAccess fixes and update baselines
2017-08-17 12:45:20 -07:00
Nathan Shively-Sanders
a59f77ffb4
Test:type predicate uses correct index to report errors
2017-08-09 15:45:28 -07:00
Anders Hejlsberg
467245780d
Merge pull request #17455 from Microsoft/mappedTypeFixes
...
Mapped and indexed access type fixes
2017-08-02 13:36:37 -07:00
Anders Hejlsberg
9e900942b5
Add regression tests
2017-07-27 09:51:17 -07:00
Anders Hejlsberg
f6ed29df3a
Add tests
2017-07-24 17:06:45 -07:00
Nathan Shively-Sanders
95f5bc1ee0
Add unknown property to test of contextual this type
2017-07-18 10:01:22 -07:00
Nathan Shively-Sanders
08ae02263a
Contextually type this in object literals in JS
...
Previously, `this` would only get a contextual type inside object
literals with `--noImplicitThis` turned on in Typescript files.
2017-07-17 15:59:18 -07:00
Nathan Shively-Sanders
26ab0cd138
Merge pull request #16530 from Microsoft/excess-property-check-error-span-for-spread-property
...
Improve excess property check error span for spread property
2017-06-14 16:16:20 -07:00
Nathan Shively-Sanders
19c564d48d
Test:error span for spread prop in excess prop check
2017-06-14 11:29:06 -07:00
Nathan Shively-Sanders
657c469d4f
Remove undefined from optional spread properties
...
Fixes #16509 by making the change from #15938 less strict. This is
technically a hole, but it's not as big a hole as before #15938 .
2017-06-14 10:31:11 -07:00
Anders Hejlsberg
a74b790ed5
Add tests
2017-06-11 14:54:46 -07:00
Ron Buckton
ff1f33729b
Improve contextual types and return type checking
2017-06-08 16:44:42 -07:00
Ron Buckton
80a7716117
PR Feedback
2017-06-08 11:27:35 -07:00
Ron Buckton
6bbacb64ce
Improve contextual types using jsdoc tags
2017-06-07 17:14:27 -07:00
Anders Hejlsberg
588880487c
Merge pull request #16305 from Microsoft/contextualGenericTypes
...
Contextual generic function types
2017-06-06 17:49:51 -07:00
Nathan Shively-Sanders
617f60e3f0
Merge pull request #16306 from Microsoft/fix-nullable-filtering-in-spreads
...
Fix nullable filtering in spreads
2017-06-06 15:00:48 -07:00
Anders Hejlsberg
98a5c9b73f
Merge branch 'master' into contextualGenericTypes
2017-06-06 14:57:20 -07:00
Nathan Shively-Sanders
cfb52e0e91
Test spread in unions of null/undefined
2017-06-06 14:13:02 -07:00
Nathan Shively-Sanders
ea830d4fad
Move spreadUnion* tests into conformance suite
2017-06-06 13:58:54 -07:00
Anders Hejlsberg
61223f2ab0
Add tests
2017-06-06 13:26:51 -07:00
Herrington Darkholme
0600a27dd9
fix #15447 : object
is empty object type ( #16290 )
2017-06-06 10:08:33 -07:00
Nathan Shively-Sanders
0b911d5648
Improve comments in source and tests
2017-05-24 13:52:29 -07:00
Nathan Shively-Sanders
db3696c789
Test:retain undefined in spreads w/strictNullChecks
...
Add test case and update baselines with new errors
2017-05-18 13:59:07 -07:00
Anders Hejlsberg
6548bcf104
Add new tests
2017-04-30 16:06:26 -07:00
Ron Buckton
2ca1de514a
Merge pull request #15241 from Microsoft/fix15205
...
Yield in async generator should implicitly unwrap operand
2017-04-18 13:25:20 -07:00
Anders Hejlsberg
cef42c97fe
Merge pull request #15104 from Microsoft/covariantCallbacks
...
Covariant checking for callback parameters
2017-04-18 11:35:21 -07:00
Ron Buckton
5dca7ccb1d
Fix yield* as well
2017-04-17 16:37:48 -07:00
Nathan Shively-Sanders
24852b6be4
Merge branch 'master' into es5-emit-param-initialiser-before-object-rest
2017-04-12 12:59:10 -07:00
Anders Hejlsberg
3cda0eac32
Update tests
2017-04-10 17:14:22 -10:00
Anders Hejlsberg
510bc81967
Add another test case
2017-04-10 07:33:08 -10:00
Anders Hejlsberg
50f84b12a2
Add tests
2017-04-08 14:19:25 -07:00
Anders Hejlsberg
0b5284d77e
Add tests
2017-04-05 11:22:21 -07:00
Daniel Rosenwasser
0459987673
Merge pull request #14467 from kpreisser/fix14269
...
Allow the right-hand side of an 'in' expression to be of non-primitive object type
2017-03-30 22:51:45 -07:00
Mohamed Hegazy
87c291eb2f
Merge pull request #14195 from HerringtonDarkholme/object-iteration
...
fix #14187 , forIn should allow non primitive object as right hand side
2017-03-23 10:11:50 -07:00
Kanchalai Tanglertsampan
028c41b951
Merge branch 'master' into master-13893
2017-03-20 17:22:04 -07:00
Anders Hejlsberg
0ac92b4706
Add tests
2017-03-07 09:07:53 -08:00
kpreisser
6d02d1fde8
Add tests.
2017-03-06 08:29:58 +01:00
Anders Hejlsberg
25738a8e41
Update tests
2017-02-28 16:09:42 -08:00
Anders Hejlsberg
ff2cfd2af5
Update test
2017-02-28 09:49:54 -08:00
Anders Hejlsberg
5bda48ba8d
Add tests
2017-02-27 10:19:26 -08:00
Anders Hejlsberg
6fdd929a66
Update test
2017-02-24 19:52:50 -08:00
Kanchalai Tanglertsampan
1415cf4ea2
Update tests and baselines to declare class declaration before use
2017-02-24 17:48:06 -08:00
Anders Hejlsberg
ec292c92e2
Update test
2017-02-22 19:25:19 -08:00
Herrington Darkholme
51966076d4
fix #14187 , forIn should allow non primitive object as right hand side
2017-02-22 10:06:34 +08:00
Anders Hejlsberg
fe32bb7642
Merge branch 'master' into contextualThisType
2017-02-16 20:15:55 -08:00
Anders Hejlsberg
e512376b0c
Update tests
2017-02-16 17:42:22 -08:00
Ron Buckton
cf72ceb093
Merge branch 'master' into asyncGenerators
2017-02-16 17:22:43 -08:00
Nathan Shively-Sanders
458e87824b
ES5:Emit parameter initialiser before object rest destructuring
...
Fix #14026 , where ES5 emit for a parameter with
1. a default value initialiser
2. an object binding pattern containing an object rest
incorrectly emitted the destructuring for the object rest before the
default value initialisation.
This happened because, during emit, the ES next transform runs first,
transforming object rest destructuring and marking it as part of the
function prologue. Then the ES5 transform runs and transforms the
default initialiser, also marking it as part of the prologue. Then the
prologue is emitted in the order the statements were added.
The fix is to not mark the object rest destructuring as part of the
prologue. I'm not 100% sure that this is the right fix, but it fixes the
bug as it stands today.
Here's an example:
```ts
function foobar({ bar={}, ...opts }: any = {}) { }
```
which should have the ES5 emit:
```js
function foobar(_a) {
if (_a === void 0) { _a = {}; }
var _b = _a.bar, bar = _b === void 0 ? {} : _b, opts = __rest(_a, ["bar"]);
}
```
2017-02-15 08:40:23 -08:00
Kanchalai Tanglertsampan
e5cfe5c348
Merge branch 'master' into wip-master-statelessOverload
...
# Conflicts:
# src/compiler/factory.ts
2017-02-14 15:21:06 -08:00
Kanchalai Tanglertsampan
56f31c3266
Address code review
2017-02-03 10:54:15 -08:00
Ron Buckton
5d415cac52
Merge branch 'master' into asyncGenerators
2017-02-02 12:11:44 -08:00
Anders Hejlsberg
34ec895642
Add regression test
2017-02-01 09:47:30 -08:00
Kanchalai Tanglertsampan
42c0816164
Merge branch 'master' into wip-master-statelessOverload
2017-01-31 11:33:07 -08:00
Anders Hejlsberg
647e1836c3
Add tests
2017-01-30 16:53:43 -08:00
Anders Hejlsberg
34b4dbb260
Add regression test
2017-01-30 15:47:18 -08:00
Kanchalai Tanglertsampan
3e07398aee
Merge branch 'master' into wip-master-statelessOverload
2017-01-24 14:18:39 -08:00
Nathan Shively-Sanders
ceb5fac343
Merge pull request #13558 from HerringtonDarkholme/rest-spread-intrinsic
...
Fix #13556 : enable rest/spread on `object`
2017-01-24 08:59:02 -08:00
Herrington Darkholme
24bb21c55a
address code review
2017-01-24 11:24:30 +08:00
Anders Hejlsberg
80e5f2f314
Add regression test
2017-01-22 11:53:18 -08:00
Anders Hejlsberg
615784ad94
Add tests
2017-01-21 13:07:06 -08:00
Kanchalai Tanglertsampan
70ca18e91c
Add a test for contextual type in JSXAttributes
2017-01-18 15:17:09 -08:00
Nathan Shively-Sanders
34fa27895f
Merge branch 'master' into property-access-for-string-index-sigs
2017-01-18 08:29:38 -08:00
Herrington Darkholme
b4c15982ff
fix #13556 : enable rest/spread on object
2017-01-18 14:57:20 +08:00
Anders Hejlsberg
4d501d1f44
Merge pull request #13523 from Microsoft/fixNumericIndexedAccess
...
Fix numeric indexed access types
2017-01-17 11:51:52 -10:00
Anders Hejlsberg
f7d8e3befc
Add regression test
2017-01-16 12:18:15 -08:00
Ron Buckton
061175ef9f
Emit 'object' type in declaration emitter
2017-01-15 16:26:17 -08:00
Ron Buckton
35ef1f7cbf
Merge branch 'master' into asyncGenerators
2017-01-15 15:28:04 -08:00
Anders Hejlsberg
2711303539
Merge pull request #13448 from Microsoft/fixMappedTypeRelations
...
Improve generic mapped type relations
2017-01-12 13:20:31 -10:00
Anders Hejlsberg
dafea7f54d
Add tests
2017-01-12 10:49:58 -08:00
Anders Hejlsberg
0e0953fc4f
Add tests
2017-01-11 16:11:16 -08:00
Anders Hejlsberg
5abd3230a4
Add regression test
2017-01-11 11:50:41 -08:00