mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 21:53:42 -06:00
Merge pull request #3697 from Microsoft/testObjectBindingCompletionWithUnionTypes
Add test case for completion when destructuring from a union type.
This commit is contained in:
commit
379ca11a8b
@ -0,0 +1,19 @@
|
||||
/// <reference path='fourslash.ts'/>
|
||||
|
||||
////interface I {
|
||||
//// x: number;
|
||||
//// y: string;
|
||||
//// z: boolean;
|
||||
////}
|
||||
////
|
||||
////interface J {
|
||||
//// x: string;
|
||||
//// y: string;
|
||||
////}
|
||||
////
|
||||
////let { /**/ }: I | J = { x: 10 };
|
||||
|
||||
goTo.marker();
|
||||
verify.completionListContains("x");
|
||||
verify.completionListContains("y");
|
||||
verify.not.completionListContains("z");
|
||||
Loading…
x
Reference in New Issue
Block a user