Commit Graph
1189 Commits
Author SHA1 Message Date
Bill Ticehurst 3ebf0fc383 Fixed default import from export equals
(cherry picked from commit c4a10cfcdd)
2016-03-09 19:13:14 -08:00
Vladimir Matveev 5d5fee2ef1 Merge pull request #7450 from Microsoft/noImplicitReturnsInAsync
unwrap promised typed in async function before doing 'noImplicitRetur…
2016-03-09 12:42:10 -08:00
Anders Hejlsberg 614afb740d Merge pull request #7448 from Microsoft/optimizeInstantiation
Skip unnecessary instatiation of anonymous types
2016-03-09 12:40:32 -08:00
Anders Hejlsberg 4f441bd553 Adding comment to test 2016-03-09 11:37:40 -08:00
Vladimir Matveev 907ce8fb38 unwrap promised typed in async function before doing 'noImplicitReturns' check 2016-03-09 11:23:55 -08:00
Anders Hejlsberg 1d181360cc Adding tests 2016-03-09 11:03:40 -08:00
Oskar Segersvärd 2e23010437 Add three tests 2016-03-09 18:43:21 +01:00
Mohamed Hegazy 7acf58ba52 Handel module augmentation with export= var + uninstantiated module 2016-03-08 17:16:19 -08:00
Mohamed Hegazy 15640492c4 Code review comments 2016-03-04 14:21:31 -08:00
Mohamed Hegazy 15f07e6231 Fix #4506: Remove assert to allow for invalid patterns already flagged erlier by the checker 2016-03-03 23:01:46 -08:00
Mohamed Hegazy 3bb2c57264 Fix #3810: Handel expressions in extends clauses 2016-03-03 22:35:30 -08:00
Mohamed Hegazy c98c763243 Fix #5651: Get the correct meaning for expressions in extends clauses 2016-03-03 21:47:11 -08:00
Mohamed Hegazy baa040115e Fix #7173: Widen the type do the defualt export expression before writing it out. 2016-03-03 15:42:47 -08:00
Evan Martin 5132ea64ea in noImplicitReturns mode, also disallow "return;"
In --noImplicitReturns mode, if a function specifies a return type,
disallow empty "return;" statements.

Fixes #5916.
2016-03-03 12:18:23 -08:00
Vladimir Matveev 568e2aab58 allow fallthrough from the last case of the switch 2016-03-01 15:58:59 -08:00
Vladimir Matveev 24511ad1d7 do not emit explicit 'continue' in converted loops 2016-02-28 08:57:45 -08:00
Mohamed Hegazy 17b7c3eee1 Merge pull request #7226 from Microsoft/bindingPatternsInTypes
Correctly serialize types with signatures containing binding patterns
2016-02-26 08:59:37 -08:00
Vladimir Matveev 66cf56e1e0 emit temp declarations after export equals 2016-02-25 20:48:15 -08:00
Vladimir Matveev 8074dbd046 Merge pull request #7246 from Microsoft/noImplicitReturnsWithProtectedBlocks
properly set reachable state after protected try\finally block
2016-02-25 15:03:44 -08:00
Nathan Shively-Sanders 7bbd899b62 Merge pull request #7232 from Microsoft/invalid-this-emit-in-contextual-object
Invalid this emit in contextual object
2016-02-25 15:01:31 -08:00
Vladimir Matveev 5105a317e3 properly set reachable state after protected try\finally block 2016-02-25 13:41:03 -08:00
Mohamed Hegazy c3cfebfda8 Code review comments 2016-02-25 13:14:34 -08:00
Nathan Shively-Sanders 31c5fc7bd5 Add test and baseline 2016-02-24 16:21:36 -08:00
Mohamed Hegazy 8b9afce894 Add test 2016-02-24 13:02:30 -08:00
Daniel Rosenwasser eb1a70cd16 Added tests. 2016-02-23 19:59:16 -08:00
Daniel Rosenwasser f579bcf8ae Added tests. 2016-02-23 13:07:46 -08:00
Nathan Shively-Sanders 02fc8b1b2d Add abstract property tests and rebaseline.
1. Positive tests.
2. Negative tests.
3. Update error messages.
4. Remove errors from conformance test.
2016-02-22 10:31:31 -08:00
Nathan Shively-Sanders eacc092f87 Add cases and baselines from #6211 and #6210 2016-02-19 11:33:32 -08:00
Vladimir Matveev 5e770bda2e correctly check exported type aliases merged with overloads 2016-02-17 10:19:20 -08:00
Mohamed Hegazy eed65a0334 Port #7106 to master 2016-02-16 22:01:28 -08:00
Mohamed Hegazy bde20c4ec7 Merge pull request #6885 from AbubakerB/constructorAccessibility
Constructor Visibility
2016-02-16 16:50:19 -08:00
Anders Hejlsberg a8633eec90 Merge pull request #7029 from Microsoft/implicitIndexSignatures
Implicit index signatures
2016-02-16 15:37:18 -08:00
AbubakerB de23e2ff74 Merge branch 'master' into constructorAccessibility
Conflicts:
	src/compiler/checker.ts
2016-02-16 22:49:23 +00:00
Vladimir Matveev 3820dfa830 Merge pull request #7068 from Microsoft/relativeNamesInClassicResolution
classic resolution: don't perform folder walk if module name is relative
2016-02-16 12:03:09 -08:00
AbubakerB 2d7a0f4a25 Merge branch 'master' into constructorAccessibility 2016-02-14 20:58:53 +00:00
Bill Ticehurst fb474d13dd Updated tests 2016-02-12 19:35:05 -08:00
Bill Ticehurst f601e6dd76 Allow decorators in JavaScript files 2016-02-12 18:52:51 -08:00
Vladimir Matveev 9960064bc3 classic resolution: don't perform folder walk if module name is relative 2016-02-12 16:30:19 -08:00
Bill Ticehurst e03a45a824 Fix fallback to classic resolution 2016-02-12 15:40:47 -08:00
AbubakerB d0843e1dc2 Merge branch 'ts-master' into constructorAccessibility
Conflicts:
	src/compiler/checker.ts
2016-02-12 23:35:22 +00:00
Bill Ticehurst dd5dc3a967 Added module: none baseline
(cherry picked from commit d446d06f96)
2016-02-11 14:09:12 -08:00
Anders Hejlsberg bb7ba1dcea Adding test 2016-02-10 06:56:25 -08:00
Kanchalai Tanglertsampan 116bce37ea Add missing tests from portfix6901 2016-02-08 10:52:01 -08:00
Bill Ticehurst bd8aba956f Fix emitted file extension for JavaScript files with JSX.Preserve
(cherry picked from commit af0a0eedd8)
2016-02-07 13:11:26 -08:00
Mohamed Hegazy d27d10ce2f Merge pull request #6884 from Microsoft/emitModulesInLooseMode
Add flag to emit modules in loose mode
2016-02-05 16:51:28 -08:00
Mohamed Hegazy 6f804e40ef change flag name 2016-02-05 16:30:01 -08:00
Vladimir Matveev 0dae5471c7 Merge pull request #6898 from Microsoft/modifiedBlockScopedBinding
propagate back assignments to block scoped binding from the loop body
2016-02-04 13:18:34 -08:00
Mohamed Hegazy 1611f56481 Rename flag 2016-02-04 12:44:03 -08:00
Vladimir Matveev dbcfe110f1 propagate back assignments to block scoped binding from the loop body 2016-02-03 23:48:24 -08:00
Vladimir Matveev 2c24f81561 added tests 2016-02-03 21:43:31 -08:00