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 {
|
|
|
|
//// hello() {}
|
|
|
|
//// }|]
|
|
|
|
//// }
|
|
|
|
////
|
|
|
|
//// [|class Baz implements Foo.Bar {
|
|
|
|
//// hello() {}
|
|
|
|
//// }|]
|
|
|
|
////
|
|
|
|
//// 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");
|