TypeScript/tests/baselines/reference/staticInterfaceAssignmentCompat.types

28 lines
483 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/staticInterfaceAssignmentCompat.ts ===
class Shape {
>Shape : Shape
2014-08-15 23:33:16 +02:00
static create(): Shape {
>create : () => Shape
>Shape : Shape
2014-08-15 23:33:16 +02:00
return new Shape();
>new Shape() : Shape
>Shape : typeof Shape
2014-08-15 23:33:16 +02:00
}
}
interface ShapeFactory {
>ShapeFactory : ShapeFactory
2014-08-15 23:33:16 +02:00
create(): Shape;
>create : () => Shape
>Shape : Shape
2014-08-15 23:33:16 +02:00
}
var x: ShapeFactory = Shape;
>x : ShapeFactory
>ShapeFactory : ShapeFactory
>Shape : typeof Shape
2014-08-15 23:33:16 +02:00