TypeScript/tests/baselines/reference/reorderProperties.types

57 lines
2 KiB
Text
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/reorderProperties.ts ===
interface A<T> {
>A : A<T>, Symbol(A,Decl(reorderProperties.ts,0,0))
>T : T, Symbol(T,Decl(reorderProperties.ts,0,12))
2014-08-15 23:33:16 +02:00
x: T
>x : T, Symbol(x,Decl(reorderProperties.ts,0,16))
>T : T, Symbol(T,Decl(reorderProperties.ts,0,12))
2014-08-15 23:33:16 +02:00
}
interface B<T> {
>B : B<T>, Symbol(B,Decl(reorderProperties.ts,2,1))
>T : T, Symbol(T,Decl(reorderProperties.ts,4,12))
2014-08-15 23:33:16 +02:00
x: T
>x : T, Symbol(x,Decl(reorderProperties.ts,4,16))
>T : T, Symbol(T,Decl(reorderProperties.ts,4,12))
2014-08-15 23:33:16 +02:00
}
interface C<S> extends A<D<S>> {
>C : C<S>, Symbol(C,Decl(reorderProperties.ts,6,1))
>S : S, Symbol(S,Decl(reorderProperties.ts,8,12))
>A : A<T>, Symbol(A,Decl(reorderProperties.ts,0,0))
>D : D<S>, Symbol(D,Decl(reorderProperties.ts,10,1))
>S : S, Symbol(S,Decl(reorderProperties.ts,8,12))
2014-08-15 23:33:16 +02:00
y: S
>y : S, Symbol(y,Decl(reorderProperties.ts,8,32))
>S : S, Symbol(S,Decl(reorderProperties.ts,8,12))
2014-08-15 23:33:16 +02:00
}
interface D<S> extends B<C<S>> {
>D : D<S>, Symbol(D,Decl(reorderProperties.ts,10,1))
>S : S, Symbol(S,Decl(reorderProperties.ts,12,12))
>B : B<T>, Symbol(B,Decl(reorderProperties.ts,2,1))
>C : C<S>, Symbol(C,Decl(reorderProperties.ts,6,1))
>S : S, Symbol(S,Decl(reorderProperties.ts,12,12))
2014-08-15 23:33:16 +02:00
y: S
>y : S, Symbol(y,Decl(reorderProperties.ts,12,32))
>S : S, Symbol(S,Decl(reorderProperties.ts,12,12))
2014-08-15 23:33:16 +02:00
}
var c: C<{ s: string; n: number }>
>c : C<{ s: string; n: number; }>, Symbol(c,Decl(reorderProperties.ts,16,3))
>C : C<S>, Symbol(C,Decl(reorderProperties.ts,6,1))
>s : string, Symbol(s,Decl(reorderProperties.ts,16,10))
>n : number, Symbol(n,Decl(reorderProperties.ts,16,21))
2014-08-15 23:33:16 +02:00
var d: D<{ n: number; s: string }> = c
>d : D<{ n: number; s: string; }>, Symbol(d,Decl(reorderProperties.ts,17,3))
>D : D<S>, Symbol(D,Decl(reorderProperties.ts,10,1))
>n : number, Symbol(n,Decl(reorderProperties.ts,17,10))
>s : string, Symbol(s,Decl(reorderProperties.ts,17,21))
>c : C<{ s: string; n: number; }>, Symbol(c,Decl(reorderProperties.ts,16,3))
2014-08-15 23:33:16 +02:00