mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-29 19:42:39 -05:00
Added test using code from original issue.
This commit is contained in:
15
tests/cases/fourslash/goToDefinitionUnionTypeProperty3.ts
Normal file
15
tests/cases/fourslash/goToDefinitionUnionTypeProperty3.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/// <reference path='fourslash.ts' />
|
||||
|
||||
////interface Array<T> {
|
||||
//// /*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");
|
||||
Reference in New Issue
Block a user