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