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

28 lines
483 B
Plaintext

=== tests/cases/compiler/staticInterfaceAssignmentCompat.ts ===
class Shape {
>Shape : Shape
static create(): Shape {
>create : () => Shape
>Shape : Shape
return new Shape();
>new Shape() : Shape
>Shape : typeof Shape
}
}
interface ShapeFactory {
>ShapeFactory : ShapeFactory
create(): Shape;
>create : () => Shape
>Shape : Shape
}
var x: ShapeFactory = Shape;
>x : ShapeFactory
>ShapeFactory : ShapeFactory
>Shape : typeof Shape