TypeScript/tests/cases/compiler/staticInterfaceAssignmentCompat.ts
2014-07-12 17:30:19 -07:00

12 lines
169 B
TypeScript

class Shape {
static create(): Shape {
return new Shape();
}
}
interface ShapeFactory {
create(): Shape;
}
var x: ShapeFactory = Shape;