TypeScript/tests/baselines/reference/interfaceExtendsClass1.types

40 lines
682 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/interfaceExtendsClass1.ts ===
class Control {
>Control : Control
2014-08-15 23:33:16 +02:00
private state: any;
>state : any
2014-08-15 23:33:16 +02:00
}
interface SelectableControl extends Control {
>SelectableControl : SelectableControl
>Control : Control
2014-08-15 23:33:16 +02:00
select(): void;
>select : () => void
2014-08-15 23:33:16 +02:00
}
class Button extends Control {
>Button : Button
>Control : Control
2014-08-15 23:33:16 +02:00
select() { }
>select : () => void
2014-08-15 23:33:16 +02:00
}
class TextBox extends Control {
>TextBox : TextBox
>Control : Control
2014-08-15 23:33:16 +02:00
select() { }
>select : () => void
2014-08-15 23:33:16 +02:00
}
class Image extends Control {
>Image : Image
>Control : Control
2014-08-15 23:33:16 +02:00
}
class Location {
>Location : Location
2014-08-15 23:33:16 +02:00
select() { }
>select : () => void
2014-08-15 23:33:16 +02:00
}