TypeScript/tests/cases/fourslash/goToImplementationInterface_04.ts
2016-09-13 17:33:49 -07:00

20 lines
559 B
TypeScript

/// <reference path='fourslash.ts'/>
// Should go to function literals that implement the interface within variable like declarations when invoked on an interface
//// interface Fo/*interface_definition*/o {
//// (a: number): void
//// }
////
//// var bar: Foo = [|(a) => {/**0*/}|];
////
//// function whatever(x: Foo = [|(a) => {/**1*/}|] ) {
//// }
////
//// class Bar {
//// x: Foo = [|(a) => {/**2*/}|]
////
//// constructor(public f: Foo = [|function(a) {}|] ) {}
//// }
verify.allRangesAppearInImplementationList("interface_definition");