TypeScript/tests/baselines/reference/interfaceSubtyping.types
2014-08-15 14:37:48 -07:00

19 lines
315 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
}