mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
22 lines
535 B
JSON
22 lines
535 B
JSON
// === goToImplementation ===
|
|
// === /goToImplementationInterface_01.ts ===
|
|
// interface Fo/*GOTO IMPL*/o { hello(): void }
|
|
//
|
|
// <|class [|SuperBar|] implements Foo {
|
|
// hello () {}
|
|
// }|>
|
|
//
|
|
// <|abstract class [|AbstractBar|] implements Foo {
|
|
// abstract hello (): void;
|
|
// }|>
|
|
//
|
|
// <|class [|Bar|] extends SuperBar {
|
|
// }|>
|
|
//
|
|
// <|class [|NotAbstractBar|] extends AbstractBar {
|
|
// hello () {}
|
|
// }|>
|
|
//
|
|
// var x = new SuperBar();
|
|
// var y: SuperBar = new SuperBar();
|
|
// var z: AbstractBar = new NotAbstractBar(); |