2016-08-22 22:57:40 +02:00
|
|
|
/// <reference path='fourslash.ts'/>
|
|
|
|
|
|
|
|
// Should return implementations in a simple class
|
|
|
|
|
|
|
|
//// interface Foo {
|
|
|
|
//// hel/*declaration*/lo(): void;
|
|
|
|
//// okay?: number;
|
|
|
|
//// }
|
|
|
|
////
|
|
|
|
//// class Bar implements Foo {
|
2018-05-31 22:32:02 +02:00
|
|
|
//// [|hello|]() {}
|
2016-08-22 22:57:40 +02:00
|
|
|
//// public sure() {}
|
|
|
|
//// }
|
|
|
|
////
|
|
|
|
//// function whatever(a: Foo) {
|
|
|
|
//// a.he/*function_call*/llo();
|
|
|
|
//// }
|
|
|
|
////
|
|
|
|
//// whatever(new Bar());
|
|
|
|
|
2016-09-14 02:33:49 +02:00
|
|
|
verify.allRangesAppearInImplementationList("function_call");
|
|
|
|
verify.allRangesAppearInImplementationList("declaration");
|