2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/reorderProperties.ts ===
|
|
|
|
interface A<T> {
|
|
|
|
>A : A<T>
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
x: T
|
|
|
|
>x : T
|
|
|
|
>T : T
|
|
|
|
}
|
|
|
|
|
|
|
|
interface B<T> {
|
|
|
|
>B : B<T>
|
|
|
|
>T : T
|
|
|
|
|
|
|
|
x: T
|
|
|
|
>x : T
|
|
|
|
>T : T
|
|
|
|
}
|
|
|
|
|
|
|
|
interface C<S> extends A<D<S>> {
|
|
|
|
>C : C<S>
|
|
|
|
>S : S
|
2014-08-19 04:56:03 +02:00
|
|
|
>A : A<T>
|
|
|
|
>D : D<S>
|
2014-08-15 23:33:16 +02:00
|
|
|
>S : S
|
|
|
|
|
|
|
|
y: S
|
|
|
|
>y : S
|
|
|
|
>S : S
|
|
|
|
}
|
|
|
|
|
|
|
|
interface D<S> extends B<C<S>> {
|
|
|
|
>D : D<S>
|
|
|
|
>S : S
|
2014-08-19 04:56:03 +02:00
|
|
|
>B : B<T>
|
|
|
|
>C : C<S>
|
2014-08-15 23:33:16 +02:00
|
|
|
>S : S
|
|
|
|
|
|
|
|
y: S
|
|
|
|
>y : S
|
|
|
|
>S : S
|
|
|
|
}
|
|
|
|
|
|
|
|
var c: C<{ s: string; n: number }>
|
|
|
|
>c : C<{ s: string; n: number; }>
|
2014-08-19 04:56:03 +02:00
|
|
|
>C : C<S>
|
2014-08-15 23:33:16 +02:00
|
|
|
>s : string
|
|
|
|
>n : number
|
|
|
|
|
|
|
|
var d: D<{ n: number; s: string }> = c
|
|
|
|
>d : D<{ n: number; s: string; }>
|
2014-08-19 04:56:03 +02:00
|
|
|
>D : D<S>
|
2014-08-15 23:33:16 +02:00
|
|
|
>n : number
|
|
|
|
>s : string
|
|
|
|
>c : C<{ s: string; n: number; }>
|
|
|
|
|