TypeScript/tests/cases/fourslash/goToImplementationInterfaceMethod_10.ts

49 lines
1 KiB
TypeScript
Raw Normal View History

2016-08-22 22:57:40 +02:00
/// <reference path='fourslash.ts'/>
// Should handle union and intersection types
2016-08-22 22:57:40 +02:00
//// interface BaseFoo {
2016-08-22 22:57:40 +02:00
//// hello(): void;
//// }
////
//// interface Foo extends BaseFoo {
2016-08-22 22:57:40 +02:00
//// aloha(): void;
//// }
////
//// interface Bar {
//// hello(): void;
//// goodbye(): void;
//// }
////
//// class FooImpl implements Foo {
//// [|hello() {/**FooImpl*/}|]
2016-08-22 22:57:40 +02:00
//// aloha() {}
//// }
////
//// class BaseFooImpl implements BaseFoo {
//// hello() {/**BaseFooImpl*/} // Should not show up
//// }
////
2016-08-22 22:57:40 +02:00
//// class BarImpl implements Bar {
//// [|hello() {/**BarImpl*/}|]
2016-08-22 22:57:40 +02:00
//// goodbye() {}
//// }
////
//// class FooAndBarImpl implements Foo, Bar {
//// [|hello() {/**FooAndBarImpl*/}|]
//// aloha() {}
//// goodbye() {}
//// }
////
//// function someFunction(x: Foo | Bar) {
//// x.he/*function_call0*/llo();
//// }
////
//// function anotherFunction(x: Foo & Bar) {
//// x.he/*function_call1*/llo();
2016-08-22 22:57:40 +02:00
//// }
for (var i = 0; i < 2; i++) {
2016-09-14 02:33:49 +02:00
verify.allRangesAppearInImplementationList("function_call" + i);
}