mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-08 11:53:15 -05:00
Update tests to remove other type paramters from constraints
This commit is contained in:
@@ -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");
|
||||
|
||||
@@ -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
|
||||
////}
|
||||
|
||||
Reference in New Issue
Block a user