TypeScript/tests/cases/compiler/interfaceSubtyping.ts

9 lines
152 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
interface iface {
foo(): void;
}
class Camera implements iface{
constructor (public str: string) {
}
foo() { return "s"; }
}