TypeScript/tests/cases/fourslash/goToImplementationInterfaceMethod_00.ts

26 lines
708 B
TypeScript
Raw Normal View History

2016-08-22 22:57:40 +02:00
/// <reference path='fourslash.ts'/>
// Should return method implementations in object literals within variable-like declarations
//// interface Foo {
//// he/*declaration*/llo: () => void
//// }
////
//// var bar: Foo = { [|hello|]: helloImpl };
//// var baz: Foo = { "[|hello|]": helloImpl };
2016-08-22 22:57:40 +02:00
////
//// function helloImpl () {}
////
//// function whatever(x: Foo = { [|hello|]() {/**1*/} }) {
2016-08-22 22:57:40 +02:00
//// x.he/*function_call*/llo()
//// }
////
//// class Bar {
//// x: Foo = { [|hello|]() {/*2*/} }
2016-08-22 22:57:40 +02:00
////
//// constructor(public f: Foo = { [|hello|]() {/**3*/} } ) {}
2016-08-22 22:57:40 +02:00
//// }
2016-09-14 02:33:49 +02:00
verify.allRangesAppearInImplementationList("function_call");
verify.allRangesAppearInImplementationList("declaration");