From 7a1be3cc0400bd52416908673767db48ed38dd1c Mon Sep 17 00:00:00 2001 From: Daniel Rosenwasser Date: Wed, 17 Dec 2014 14:25:16 -0800 Subject: [PATCH] Added test using code from original issue. --- .../fourslash/goToDefinitionUnionTypeProperty3.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 tests/cases/fourslash/goToDefinitionUnionTypeProperty3.ts diff --git a/tests/cases/fourslash/goToDefinitionUnionTypeProperty3.ts b/tests/cases/fourslash/goToDefinitionUnionTypeProperty3.ts new file mode 100644 index 00000000000..337bae7d520 --- /dev/null +++ b/tests/cases/fourslash/goToDefinitionUnionTypeProperty3.ts @@ -0,0 +1,15 @@ +/// + +////interface Array { +//// /*definition*/specialPop(): T +////} +//// +////var strings: string[]; +////var numbers: number[]; +//// +////var x = (strings || numbers)./*usage*/specialPop() + +goTo.marker("usage"); +verify.definitionCountIs(1); +goTo.definition(); +verify.caretAtMarker("definition");