Nathan Shively-Sanders
6c735b5cbf
Add contextual typing test with this specified
2016-04-07 07:59:46 -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
Nathan Shively-Sanders
9e5fba6036
Prepend 'the' to a couple of ambiguous messages.
...
Based on feedback from @DanielRosenwasser @Arnavion and @RichiCoder1
2016-04-01 11:33:33 -07:00
Nathan Shively-Sanders
4197a30f0c
Improve error messages and always return any from newed functions
...
Previously, functions that specified a type for `this` would return that
type. Now they return `any`. This helps prevent unintentional use of this
feature when --noImplicitAny is turned on.
The type of `this` is still checked in the body of these functions.
2016-03-31 14:32:56 -07:00
Nathan Shively-Sanders
81f0d86634
Fix up baselines and missing , after merge
2016-03-31 10:58:59 -07:00
Nathan Shively-Sanders
ce68932475
Merge branch 'master' into this-function-types
2016-03-31 10:46:03 -07:00
Nathan Shively-Sanders
da98258703
Improve error messages and code style
2016-03-31 10:28:06 -07:00
Nathan Shively-Sanders
0060b4d663
Test that signature help doesn't show 'this'
2016-03-31 09:32:34 -07:00
Nathan Shively-Sanders
e4ed7f904e
Address PR comments
2016-03-30 15:01:16 -07:00
Yui
68bdbe04e7
Merge pull request #7715 from Microsoft/6974AddLibImplementation
...
6974 add lib implementation
2016-03-30 14:22:41 -07:00
Daniel Rosenwasser
9705c892d7
Merge pull request #5517 from Microsoft/comparableRelation
...
Introduce the "comparable" relation
2016-03-30 13:37:11 -07:00
Nathan Shively-Sanders
0113ad5250
Error on all uses of this that are implicitly any
...
Previously it was only an error inside an function.
2016-03-30 13:31:10 -07:00
Daniel Rosenwasser
a3faca57d0
Merge branch 'master' into comparableRelation
2016-03-30 01:01:02 -07:00
Anton Tolmachev
7ce43d4716
Fix #7101
2016-03-29 22:53:30 +03:00
Kanchalai Tanglertsampan
de7e9f0bf9
Update baselines affected by modularize library PR
2016-03-28 17:01:35 -07:00
Kanchalai Tanglertsampan
7f8774f68e
Update the baselines for modularize library
2016-03-28 16:39:00 -07:00
Kanchalai Tanglertsampan
7e1470d5d4
Address PR: use getDefaultLibLocation? insteadof getUserDefinedLibFileName
2016-03-28 16:24:16 -07:00
Kanchalai Tanglertsampan
eff81b933c
Add compiler-baseline tests and associated baselines for --lib flag
...
Add --lib compiler tests and baselines
Remove old compiler baselines
2016-03-28 14:48:56 -07:00
Kanchalai Tanglertsampan
f052e90fd1
Update fourslash tests
2016-03-28 14:21:08 -07:00
Kanchalai Tanglertsampan
623eef6968
Update unittest for --lib
2016-03-28 14:20:54 -07:00
Kanchalai Tanglertsampan
3fef5ba458
Implement --lib flag in the compiler and harness
2016-03-28 14:20:29 -07:00
Nathan Shively-Sanders
f64110aa0f
Update baselines after merging from master
2016-03-28 10:37:39 -07:00
Nathan Shively-Sanders
9e5f26048b
Merge branch 'master' into this-function-types
2016-03-28 10:12:25 -07:00
Yuichi Nukiyama
b16f8e1be4
Throw error when tsconfig.json has excludes without exclude property
2016-03-28 21:23:59 +09:00
Tingan Ho
b7c3547937
Merged with master
2016-03-27 02:43:32 +08:00
Nathan Shively-Sanders
a91cdccfc5
Add --noImplicitThis flag
...
It's basically another --noImplicitAny error, but one that would break
large amount of JavaScript-style code.
2016-03-25 16:37:28 -07:00
Nathan Shively-Sanders
c9f5f3d67e
Remove --strictThisChecks
2016-03-25 15:41:37 -07:00
Mohamed Hegazy
bdb741e92a
Fix #7629 : Check if errros are needed before reporting them in enumRelatedTo
2016-03-25 12:39:43 -07:00
Mohamed Hegazy
8647d2a97c
Merge branch 'nestedPrivateProtectedMembers' of https://github.com/AbubakerB/TypeScript into AbubakerB-nestedPrivateProtectedMembers
2016-03-23 17:54:21 -07:00
Mohamed Hegazy
3ee67e7cf6
Fix #7637 : treat jsx tag names as expressions
2016-03-22 14:55:24 -07:00
Anders Hejlsberg
3853bb86d0
Merge pull request #7140 from Microsoft/strictNullChecks
...
Non-nullable types
2016-03-21 16:52:43 -07:00
Mohamed Hegazy
7c99c8f8df
Merge pull request #7622 from Microsoft/findAllReferencesForJSXTagNames
...
Fix issue with find references for jsx tags
2016-03-21 16:28:31 -07:00
Anders Hejlsberg
fb6255a7e4
Accepting new baselines
2016-03-21 16:28:09 -07:00
Anders Hejlsberg
413d9a639f
Merge branch 'master' into strictNullChecks
...
Conflicts:
src/compiler/diagnosticMessages.json
src/compiler/types.ts
tests/baselines/reference/typeGuardOfFormTypeOfEqualEqualHasNoEffect.symbols
tests/baselines/reference/typeGuardOfFormTypeOfNotEqualHasNoEffect.symbols
2016-03-21 16:21:02 -07:00
Vladimir Matveev
4e06457b1d
Merge pull request #7595 from Microsoft/revertParseCompilerOptionsFromJson
...
revert changes in the signature of 'convertCompilerOptionsFromJson'
2016-03-21 16:07:31 -07:00
Mohamed Hegazy
d5c3a0a52b
Fix issue with find references for jsx tags
2016-03-21 15:40:14 -07:00
Vladimir Matveev
e052eb1cda
Merge pull request #7621 from Microsoft/dropInferenceLimit
...
drop inference depth limit
2016-03-21 15:36:36 -07:00
Vladimir Matveev
134a253f57
added API sample to tests
2016-03-21 15:20:59 -07:00
Vladimir Matveev
cc8277c4db
Merge pull request #7591 from Microsoft/allow-merge-for-types-namespaces
...
Allow aliases to be merged with exported types\namespaces
2016-03-21 15:16:10 -07:00
Vladimir Matveev
6f37d31e18
drop inference limit
2016-03-21 15:15:41 -07:00
Daniel Rosenwasser
e9aeaa2f0d
Accepted baselines.
2016-03-20 12:31:11 -07:00
Vladimir Matveev
497b4c341c
revert changes in the signature of 'convertCompilerOptionsFromJson'
2016-03-19 20:59:32 -07:00
Vladimir Matveev
3691261db4
partially revert #7583
2016-03-18 22:26:52 -07:00
Vladimir Matveev
32178acdfe
Merge pull request #7583 from Microsoft/colliding-local-import
...
check if import collides with exported local name
2016-03-18 12:21:51 -07:00
Vladimir Matveev
5ed389b6b4
check if import collides with exported local name
2016-03-18 10:29:01 -07:00
Vladimir Matveev
279fec7a7d
Merge pull request #7567 from Microsoft/contextual-type-parameters
...
show completion in destructured parameter if containing function was contextually typed
2016-03-17 16:30:20 -07:00
Mohamed Hegazy
f0b3ff16e3
Merge pull request #7532 from Microsoft/declarationEmitFixes2
...
Remove members from getAccessibleSymbolChain walk
2016-03-17 15:50:27 -07:00
Vladimir Matveev
112e4b1e80
Addressed PR feedback
2016-03-17 14:40:05 -07:00
Vladimir Matveev
6cfa64daa3
show completion in destructured parameter if containing function was contextually typed
2016-03-17 11:37:52 -07:00