27 lines
483 B
Text
27 lines
483 B
Text
=== 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
|
|
|