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