Commit graph

653 commits

Author SHA1 Message Date
Wesley Wigham 3b6fa314da new tests 2015-11-23 13:12:34 -08:00
Wesley Wigham 9531d929c7 update test with pr feedback 2015-11-17 14:34:02 -08:00
Wesley Wigham 321bb9aafa Merge branch 'master' into type-guard-narrowing 2015-11-17 13:50:56 -08:00
Wesley Wigham 581f52a7ea exhaustive tests 2015-11-13 13:33:54 -08:00
Wesley Wigham 346253a0d5 test, first pass at a fix 2015-11-13 11:13:10 -08:00
Ryan Cavanaugh ea29793acd Quote only names that need to be quoted, not the reverse 2015-11-12 11:02:19 -08:00
Wesley Wigham 6c29ddf162 loosen walk up containers, add extra test 2015-11-11 15:30:09 -08:00
Wesley Wigham b3f0a71082 Merge pull request #5442 from weswigham/empty-set
Improve type guard consistiency
2015-11-11 12:52:37 -08:00
Nathan Shively-Sanders c1ea85fa72 Merge pull request #5588 from Microsoft/reexport-default-export
Reexport default export
2015-11-11 11:29:31 -08:00
Daniel Rosenwasser 9c1796f714 Merge pull request #5607 from Microsoft/fixTypeApparentization
Only get the apparent type of a contextual type when needed
2015-11-11 10:27:08 -08:00
Daniel Rosenwasser 2a370c9aa7 Added tests for string literal types used as generic constraints. 2015-11-10 14:40:19 -08:00
Nathan Shively-Sanders c289106c4d Merge pull request #5575 from Microsoft/apply-captured-outer-type-parameters
Apply captured outer type parameters
2015-11-10 13:15:00 -08:00
Vladimir Matveev 072e93898d Merge pull request #5535 from Microsoft/computedPropertiesInDestructuringPR
allow computed properties in destructuring, treat computed properties…
2015-11-10 13:11:05 -08:00
Daniel Rosenwasser 3812745737 Added other tests for string literal types. 2015-11-10 12:59:45 -08:00
Daniel Rosenwasser 694c714cf5 Added test for parenthesized string literals. 2015-11-10 11:56:32 -08:00
Nathan Shively-Sanders e30a01db0f Add test case and accept baseline 2015-11-10 11:44:56 -08:00
Daniel Rosenwasser 9c284805ec Merge pull request #5185 from Microsoft/stringLiteralTypes
String literal types
2015-11-09 17:23:50 -08:00
Daniel Rosenwasser 38090c6ba5 Added tests for template strings with string literal types. 2015-11-09 12:48:58 -08:00
Wesley Wigham 5f184866af Merge branch 'master' into empty-set 2015-11-09 12:17:07 -08:00
Nathan Shively-Sanders b44e33155f Merge branch 'master' into apply-captured-outer-type-parameters 2015-11-09 10:46:23 -08:00
Nathan Shively-Sanders a6068e1c08 More test cases and accept baselines 2015-11-09 10:21:54 -08:00
Mohamed Hegazy c3df2890fc Merge pull request #5092 from tinganho/instanceOfElseClause
Instance of else clause
2015-11-07 12:20:36 -08:00
Daniel Rosenwasser f939ff23ce Fixed unreachable code in tests. 2015-11-06 14:25:32 -08:00
Daniel Rosenwasser bb232f739d Merge remote-tracking branch 'origin/master' into stringLiteralTypes 2015-11-06 13:06:43 -08:00
Anders Hejlsberg a234497004 Updating existing test 2015-11-06 08:55:26 -08:00
Anders Hejlsberg 870e96e525 Adding test 2015-11-06 08:55:08 -08:00
Anders Hejlsberg 9b4956fa11 Merge pull request #5459 from Microsoft/partialSignatureMatching
Fix union type partial signature matching
2015-11-05 16:46:52 -08:00
Vladimir Matveev db2b23da00 allow computed properties in destructuring, treat computed properties with literal expressions similar to literal named properties 2015-11-04 15:35:21 -08:00
Nathan Shively-Sanders 9223b02136 Improve test case and add working comparison 2015-11-03 14:42:03 -08:00
Wesley Wigham d4353fd0c8 Merge branch 'master' into empty-set 2015-11-03 14:40:00 -08:00
Vladimir Matveev fb15e9c7c0 Merge pull request #4788 from Microsoft/reachabilityChecks
initial revision of reachability checks
2015-11-02 14:55:19 -08:00
Nathan Shively-Sanders cc64210519 Merge pull request #5474 from Microsoft/forbid-this-as-constructor-parameter-type
Forbid this as constructor parameter type
2015-11-02 11:04:36 -08:00
Nathan Shively-Sanders 67b9647069 Add a variable of type this in constructor body
The test already had a reference to the `this` value, but that doesn't
show that the *type* is allowed.
2015-11-02 10:47:56 -08:00
Nathan Shively-Sanders 6d683d2a96 Add initial test 2015-11-02 10:44:25 -08:00
Daniel Rosenwasser 982926a4c4 Moved test. 2015-10-30 16:59:31 -07:00
Daniel Rosenwasser c3c9e513a8 Added failing test. 2015-10-30 15:30:32 -07:00
Nathan Shively-Sanders e609047b78 Add tests based on #5449 2015-10-30 14:02:07 -07:00
Wesley Wigham 9f12bc8a1b feedback from pr, new tests 2015-10-29 17:51:36 -07:00
Anders Hejlsberg a27ed01516 Adding test 2015-10-29 14:53:28 -07:00
Wesley Wigham 062495c426 naive change and new tests 2015-10-28 13:48:32 -07:00
Vladimir Matveev d2a11b55dc merge with master 2015-10-27 10:41:21 -07:00
Daniel Rosenwasser bf4880a078 Merge branch 'master' into stringLiteralTypes 2015-10-26 15:42:11 -07:00
Daniel Rosenwasser 6618fd21bf Added tests for operations that use assignable to/from. 2015-10-26 15:42:02 -07:00
Nathan Shively-Sanders c4e54685c6 Merge pull request #5384 from Microsoft/fix-union-of-variadic-functions
Fix union of variadic functions
2015-10-23 14:54:13 -07:00
Nathan Shively-Sanders 7a1004371b Add tests and accept baselines 2015-10-23 13:33:55 -07:00
Nathan Shively-Sanders 1651f1809c Improve mergedInheritedClassInterface test case
Covers the case when the merged interface extends an interface, but the
merged class does not extend a class, then trying to extend that class.
2015-10-22 11:32:26 -07:00
Vladimir Matveev f96980d388 merge with master 2015-10-21 17:13:20 -07:00
Daniel Rosenwasser 307d73ed0d Merge branch 'master' into stringLiteralTypes 2015-10-21 17:02:29 -07:00
Nathan Shively-Sanders 4d05189d8d Improve naming of test members 2015-10-21 16:23:59 -07:00
Nathan Shively-Sanders 36ddd022a1 Tests for interfaces merged w/classes
Both interfaces and classes have base classes/interfaces; all members are
available on an instance of the merged child.
2015-10-21 16:10:46 -07:00