Update tests to remove other type paramters from constraints

This commit is contained in:
Mohamed Hegazy
2014-09-15 13:00:50 -07:00
parent cb30eaf8b1
commit 4c3589fd6e
2 changed files with 6 additions and 7 deletions

View File

@@ -5,7 +5,7 @@
//// y: string;
////}
////
////function foo<S, T extends IFoo, U extends T, V extends U>() {
////function foo<S, T extends IFoo, U extends Object, V extends IFoo>() {
//// var s:S, t: T, u: U, v: V;
//// s./*S*/; // no constraint, no completion
//// t./*T*/; // IFoo
@@ -22,9 +22,8 @@ verify.memberListContains("y", "string");
verify.memberListCount(2);
goTo.marker("U");
verify.memberListContains("x", "number");
verify.memberListContains("y", "string");
verify.memberListCount(2);
verify.memberListContains("toString", "() => string");
verify.memberListCount(7); // constructor, toString, toLocaleString, valueOf, hasOwnProperty, isPrototypeOf, propertyIsEnumerable
goTo.marker("V");
verify.memberListContains("x", "number");

View File

@@ -1,5 +1,5 @@
/// <reference path='fourslash.ts'/>
/// <reference path='fourslash.ts'/>
////class A {
//// foo(): string { return ''; }
////}
@@ -10,7 +10,7 @@
//// }
////}
////
////class C<U extends T, T extends A> {
////class C<U extends A, T extends A> {
//// x: U;
//// y = this.x./**/ // completion list here
////}