TypeScript/tests/cases/fourslash/goToImplementationInterface_01.ts

24 lines
596 B
TypeScript
Raw Normal View History

2016-08-22 22:57:40 +02:00
/// <reference path='fourslash.ts'/>
//// interface Fo/*interface_definition*/o { hello(): void }
////
//// class [|SuperBar|] implements Foo {
2016-08-22 22:57:40 +02:00
//// hello () {}
//// }
2016-08-22 22:57:40 +02:00
////
//// abstract class [|AbstractBar|] implements Foo {
2016-08-22 22:57:40 +02:00
//// abstract hello (): void;
//// }
2016-08-22 22:57:40 +02:00
////
//// class [|Bar|] extends SuperBar {
2016-08-22 22:57:40 +02:00
//// }
////
//// class [|NotAbstractBar|] extends AbstractBar {
2016-08-22 22:57:40 +02:00
//// hello () {}
//// }
////
//// var x = new SuperBar();
//// var y: SuperBar = new SuperBar();
//// var z: AbstractBar = new NotAbstractBar();
2016-09-14 02:33:49 +02:00
verify.allRangesAppearInImplementationList("interface_definition");