mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-05 08:11:30 -06:00
Added tests.
This commit is contained in:
parent
713a70d794
commit
02e01d7afc
@ -0,0 +1,23 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////interface I {
|
||||
//// propertyOfI_1: number;
|
||||
//// propertyOfI_2: string;
|
||||
////}
|
||||
////interface J {
|
||||
//// property1: I;
|
||||
//// property2: string;
|
||||
////}
|
||||
////
|
||||
////var foo: J[];
|
||||
////var [{ property1: { propertyOfI_1, }, /*1*/ }, { /*2*/ }] = foo;
|
||||
|
||||
goTo.marker("1");
|
||||
verify.completionListContains("property2");
|
||||
verify.not.completionListContains("property1");
|
||||
verify.not.completionListContains("propertyOfI_2");
|
||||
verify.not.completionListContains("propertyOfI_1");
|
||||
|
||||
goTo.marker("2");
|
||||
verify.completionListContains("property1");
|
||||
verify.completionListContains("property2");
|
||||
@ -0,0 +1,13 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////interface I {
|
||||
//// property1: number;
|
||||
//// property2: string;
|
||||
////}
|
||||
////
|
||||
////var { property1: prop1, /**/ }: I;
|
||||
|
||||
goTo.marker("");
|
||||
verify.completionListContains("property2");
|
||||
verify.not.completionListContains("property1");
|
||||
verify.not.completionListContains("prop1");
|
||||
@ -0,0 +1,13 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////interface I {
|
||||
//// property1: number;
|
||||
//// property2: string;
|
||||
////}
|
||||
////
|
||||
////function f({ property1, /**/ }: I): void {
|
||||
////}
|
||||
|
||||
goTo.marker("");
|
||||
verify.completionListContains("property2");
|
||||
verify.not.completionListContains("property1");
|
||||
Loading…
x
Reference in New Issue
Block a user