TypeScript/tests/baselines/reference/interfaceSubtyping.types
2015-04-15 16:44:20 -07:00

20 lines
330 B
Plaintext

=== 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
>"s" : string
}