TypeScript/tests/cases/fourslash/goToImplementationInterface_00.ts

25 lines
814 B
TypeScript
Raw Normal View History

2016-08-22 22:57:40 +02:00
/// <reference path='fourslash.ts'/>
// Should go to definitions in object literals in variable like declarations when invoked on interface
//// interface Fo/*interface_definition*/o {
//// hello: () => void
//// }
////
//// interface Baz extends Foo {}
////
//// var bar: Foo = [|{|"parts": ["(","object literal",")"], "kind": "interface"|}{ hello: helloImpl /**0*/ }|];
2016-09-10 00:13:51 +02:00
//// var baz: Foo[] = [|[{ hello: helloImpl /**4*/ }]|];
2016-08-22 22:57:40 +02:00
////
//// function helloImpl () {}
////
//// function whatever(x: Foo = [|{|"parts": ["(","object literal",")"], "kind": "interface"|}{ hello() {/**1*/} }|] ) {
2016-08-22 22:57:40 +02:00
//// }
////
//// class Bar {
//// x: Foo = [|{ hello() {/*2*/} }|]
////
//// constructor(public f: Foo = [|{ hello() {/**3*/} }|] ) {}
//// }
2016-09-14 02:33:49 +02:00
verify.allRangesAppearInImplementationList("interface_definition");