2016-08-22 22:57:40 +02:00
|
|
|
/// <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) {}|] ) {}
|
|
|
|
//// }
|
|
|
|
|
2016-09-14 02:33:49 +02:00
|
|
|
verify.allRangesAppearInImplementationList("interface_definition");
|