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 {}
|
|
|
|
////
|
2017-03-16 23:53:05 +01:00
|
|
|
//// 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 () {}
|
|
|
|
////
|
2017-03-16 23:53:05 +01:00
|
|
|
//// 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");
|