TypeScript/tests/cases/fourslash/goToImplementationNamespace_03.ts

28 lines
673 B
TypeScript
Raw Normal View History

2016-08-22 22:57:40 +02:00
/// <reference path='fourslash.ts'/>
2016-09-07 02:02:23 +02:00
// Should handle types that are members of a namespace in type references and heritage clauses
2016-08-22 22:57:40 +02:00
2016-09-07 02:02:23 +02:00
//// namespace Foo {
//// export interface Bar {
//// hello(): void;
//// }
////
//// class [|BarImpl|] implements Bar {
2016-09-07 02:02:23 +02:00
//// hello() {}
//// }
2016-09-07 02:02:23 +02:00
//// }
////
//// class [|Baz|] implements Foo.Bar {
2016-09-07 02:02:23 +02:00
//// hello() {}
//// }
2016-09-07 02:02:23 +02:00
////
//// var someVar1 : Foo.Bar = [|{ hello: () => {/**1*/} }|];
////
//// var someVar2 = <Foo.Bar> [|{ hello: () => {/**2*/} }|];
////
//// function whatever(x: Foo.Ba/*reference*/r) {
////
//// }
2016-08-22 22:57:40 +02:00
2016-09-14 02:33:49 +02:00
verify.allRangesAppearInImplementationList("reference");