Anders Hejlsberg
9f30d9ff6e
Adding test
2016-05-11 09:42:55 -07:00
Anders Hejlsberg
8c9348d8d6
Adding test
2016-05-10 10:38:41 -07:00
Nathan Shively-Sanders
a715c45f25
Merge pull request #8463 from Microsoft/this-types-for-accessors
...
This types for accessors
2016-05-06 14:51:19 -07:00
Nathan Shively-Sanders
bc6d6ea49a
Merge pull request #8483 from Microsoft/contextually-type-iife-parameters
...
Contextually type IIFE params by their arguments
2016-05-05 20:41:08 -07:00
Yui
bbbb56b08c
Allow async as parameter in arrowfunction ( #8488 )
...
* Allow async as a parameter name in simple arrow function
* Add tests
2016-05-05 15:33:29 -07:00
Nathan Shively-Sanders
b0a387aafa
Address PR comments
...
And address bug with contextually typed arguments that the PR changes
exposed.
2016-05-05 15:04:17 -07:00
Nathan Shively-Sanders
aa38cdba56
Contextually type IIFE params by their arguments
2016-05-05 11:58:36 -07:00
Yui
7521891760
Fix 8262: allow unparenthesized parameter in async arrow-function ( #8444 )
...
* Allow unparenthesize of parameter in async arrow-function
* Add tests and baselines
* Address PR
* Address PR: refactor to use "parseSimpleArrowFunctionExpression"
* Address PR: add comment
* Address PR
2016-05-04 17:00:28 -07:00
Nathan Shively-Sanders
3d3bcb4a5b
Correctly copy annotated this getter -> setter
...
Previously it only went the other direction.
2016-05-04 13:35:35 -07:00
Nathan Shively-Sanders
ff1b083ac3
Add tests+baselines for accessor this parameters
2016-05-04 11:03:52 -07:00
Anders Hejlsberg
e828fce952
Adding tests
2016-05-03 17:05:23 -07:00
Daniel Rosenwasser
fa67cb86b3
Merge remote-tracking branch 'origin/master' into thisTypesInBasePropAndContainer
2016-05-01 20:52:51 -07:00
Nathan Shively-Sanders
c12cb83fb7
Type 'this' in object literal function properties
...
Previously, methods of object literals would give a type to 'this'.
Now function properties of object literals also give a type to 'this'.
2016-04-29 10:31:01 -07:00
Nathan Shively-Sanders
9f7621c7e2
Contextual signatures without thisType return anyType
...
If a contextual signature is found, if its thisType is undefined, then the contextual type of `this` is now `any`.
Previously `checkThisExpression` would keep looking for a different type for `this`.
Also update tests to show this new behaviour.
2016-04-28 14:17:11 -07:00
Nathan Shively-Sanders
3a74f483ba
this
in object literals intersects contextual type and literal type
2016-04-28 10:09:04 -07:00
Yui
71fc58197c
Fix8256 ( #8292 )
...
* Consider identifier in await expression to be expression
* Add tests
* Update baselines
2016-04-25 16:31:01 -07:00
Anders Hejlsberg
ff108c0142
Adding regression test
2016-04-25 11:24:39 -07:00
Anders Hejlsberg
d2b89be4bc
Adding test
2016-04-21 13:03:08 -07:00
Anders Hejlsberg
3045cf5fa2
Add regression test
2016-04-21 10:49:39 -07:00
Anders Hejlsberg
33e359ff13
Adding test
2016-04-20 07:09:43 -07:00
Anders Hejlsberg
538e22a35e
Adding tests
2016-04-18 13:51:51 -07:00
Anders Hejlsberg
9aea708953
Adding tests
2016-04-16 15:13:31 -07:00
Anders Hejlsberg
cd88f1ea32
Adding regression test
2016-04-12 13:40:21 -07:00
Anders Hejlsberg
b1e9f43d28
Merge branch 'master' into controlFlowTypes
...
Conflicts:
src/compiler/checker.ts
tests/baselines/reference/typeAssertions.errors.txt
2016-04-10 09:30:30 -07:00
Anders Hejlsberg
92df0297c8
Fixing tests
2016-04-09 18:31:19 -07:00
Anders Hejlsberg
e45bac8139
Adding test
2016-04-09 17:56:03 -07:00
Vladimir Matveev
e5e7d47782
merge with origin/master
2016-04-08 14:38:47 -07:00
Nathan Shively-Sanders
6c735b5cbf
Add contextual typing test with this
specified
2016-04-07 07:59:46 -07:00
Vladimir Matveev
46d28f16cc
added supports for 'types' compiler option
2016-04-06 13:49:25 -07:00
Vladimir Matveev
e2a23fd598
remove compilationRoot parameter, use typesRoot/config file location as a root when computing primary locations
2016-04-05 16:33:11 -07:00
Nathan Shively-Sanders
921d5f83e9
Fix == typo and add object literal 'this' test
2016-04-01 16:13:57 -07:00
Nathan Shively-Sanders
2a9f39b132
Forbid ConstructType as part of 'no this in constructors'
2016-04-01 13:06:55 -07:00
Vladimir Matveev
12d90f3be9
added tests
2016-04-01 12:41:45 -07:00
Ryan Cavanaugh
05444eaabb
Support reference library directives
2016-04-01 12:19:16 -07:00
Nathan Shively-Sanders
ce68932475
Merge branch 'master' into this-function-types
2016-03-31 10:46:03 -07:00
Nathan Shively-Sanders
e4ed7f904e
Address PR comments
2016-03-30 15:01:16 -07:00
Daniel Rosenwasser
a3faca57d0
Merge branch 'master' into comparableRelation
2016-03-30 01:01:02 -07:00
Anders Hejlsberg
e53f390b3e
Fix some tests
2016-03-29 19:59:05 -07:00
Nathan Shively-Sanders
9e5f26048b
Merge branch 'master' into this-function-types
2016-03-28 10:12:25 -07:00
Anders Hejlsberg
0820249e71
Fixing some tests
2016-03-26 08:20:06 -07:00
Anders Hejlsberg
9de0a5d833
Fix comment in test
2016-03-25 17:03:12 -07:00
Nathan Shively-Sanders
c9f5f3d67e
Remove --strictThisChecks
2016-03-25 15:41:37 -07:00
Ivo Gabe de Wolff
4f936c468b
Add control flow tests
2016-03-25 21:29:58 +01:00
Mohamed Hegazy
8647d2a97c
Merge branch 'nestedPrivateProtectedMembers' of https://github.com/AbubakerB/TypeScript into AbubakerB-nestedPrivateProtectedMembers
2016-03-23 17:54:21 -07:00
Anders Hejlsberg
7c45c7ba9f
Fixing tests
2016-03-22 10:50:06 -07:00
Nathan Shively-Sanders
1032cc5408
Rename --strictThis to --strictThisChecks
...
Use the upcoming naming scheme for --strict.*Checks and --strictChecks
flags.
2016-03-11 13:24:31 -08:00
Ryan Cavanaugh
043b338024
Add export = class
scenario
2016-03-10 10:11:48 -08:00
Ryan Cavanaugh
8cef251b14
Add test for function export
2016-03-09 16:24:54 -08:00
Ryan Cavanaugh
14941f26a0
Add tests for each variant of UMD augmentation
2016-03-09 14:35:03 -08:00
Nathan Shively-Sanders
fa22250110
Merge branch 'master' into this-function-types
2016-03-09 13:36:42 -08:00