2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/interface0.ts ===
|
|
|
|
interface Generic<T> {
|
|
|
|
>Generic : Generic<T>
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
x: T;
|
|
|
|
>x : T
|
|
|
|
>T : T
|
|
|
|
}
|
|
|
|
|
|
|
|
var y: Generic<number> = { x: 3 };
|
|
|
|
>y : Generic<number>
|
2014-08-19 04:56:03 +02:00
|
|
|
>Generic : Generic<T>
|
2014-08-15 23:33:16 +02:00
|
|
|
>{ x: 3 } : { x: number; }
|
|
|
|
>x : number
|
|
|
|
|