TypeScript/tests/baselines/reference/interfaceSubtyping.types

19 lines
315 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/interfaceSubtyping.ts ===
interface iface {
>iface : iface
foo(): void;
>foo : () => void
}
class Camera implements iface{
>Camera : Camera
>iface : iface
constructor (public str: string) {
>str : string
}
foo() { return "s"; }
>foo : () => string
}