113 lines
3.3 KiB
Text
113 lines
3.3 KiB
Text
=== tests/cases/compiler/arrayLiteralTypeInference.ts ===
|
|
class Action {
|
|
>Action : Symbol(Action, Decl(arrayLiteralTypeInference.ts, 0, 0))
|
|
|
|
id: number;
|
|
>id : Symbol(id, Decl(arrayLiteralTypeInference.ts, 0, 14))
|
|
}
|
|
|
|
class ActionA extends Action {
|
|
>ActionA : Symbol(ActionA, Decl(arrayLiteralTypeInference.ts, 2, 1))
|
|
>Action : Symbol(Action, Decl(arrayLiteralTypeInference.ts, 0, 0))
|
|
|
|
value: string;
|
|
>value : Symbol(value, Decl(arrayLiteralTypeInference.ts, 4, 30))
|
|
}
|
|
|
|
class ActionB extends Action {
|
|
>ActionB : Symbol(ActionB, Decl(arrayLiteralTypeInference.ts, 6, 1))
|
|
>Action : Symbol(Action, Decl(arrayLiteralTypeInference.ts, 0, 0))
|
|
|
|
trueNess: boolean;
|
|
>trueNess : Symbol(trueNess, Decl(arrayLiteralTypeInference.ts, 8, 30))
|
|
}
|
|
|
|
var x1: Action[] = [
|
|
>x1 : Symbol(x1, Decl(arrayLiteralTypeInference.ts, 12, 3))
|
|
>Action : Symbol(Action, Decl(arrayLiteralTypeInference.ts, 0, 0))
|
|
|
|
{ id: 2, trueness: false },
|
|
>id : Symbol(id, Decl(arrayLiteralTypeInference.ts, 13, 5))
|
|
>trueness : Symbol(trueness, Decl(arrayLiteralTypeInference.ts, 13, 12))
|
|
|
|
{ id: 3, name: "three" }
|
|
>id : Symbol(id, Decl(arrayLiteralTypeInference.ts, 14, 5))
|
|
>name : Symbol(name, Decl(arrayLiteralTypeInference.ts, 14, 12))
|
|
|
|
]
|
|
|
|
var x2: Action[] = [
|
|
>x2 : Symbol(x2, Decl(arrayLiteralTypeInference.ts, 17, 3))
|
|
>Action : Symbol(Action, Decl(arrayLiteralTypeInference.ts, 0, 0))
|
|
|
|
new ActionA(),
|
|
>ActionA : Symbol(ActionA, Decl(arrayLiteralTypeInference.ts, 2, 1))
|
|
|
|
new ActionB()
|
|
>ActionB : Symbol(ActionB, Decl(arrayLiteralTypeInference.ts, 6, 1))
|
|
|
|
]
|
|
|
|
var x3: Action[] = [
|
|
>x3 : Symbol(x3, Decl(arrayLiteralTypeInference.ts, 22, 3))
|
|
>Action : Symbol(Action, Decl(arrayLiteralTypeInference.ts, 0, 0))
|
|
|
|
new Action(),
|
|
>Action : Symbol(Action, Decl(arrayLiteralTypeInference.ts, 0, 0))
|
|
|
|
new ActionA(),
|
|
>ActionA : Symbol(ActionA, Decl(arrayLiteralTypeInference.ts, 2, 1))
|
|
|
|
new ActionB()
|
|
>ActionB : Symbol(ActionB, Decl(arrayLiteralTypeInference.ts, 6, 1))
|
|
|
|
]
|
|
|
|
var z1: { id: number }[] =
|
|
>z1 : Symbol(z1, Decl(arrayLiteralTypeInference.ts, 28, 3))
|
|
>id : Symbol(id, Decl(arrayLiteralTypeInference.ts, 28, 9))
|
|
|
|
[
|
|
{ id: 2, trueness: false },
|
|
>id : Symbol(id, Decl(arrayLiteralTypeInference.ts, 30, 9))
|
|
>trueness : Symbol(trueness, Decl(arrayLiteralTypeInference.ts, 30, 16))
|
|
|
|
{ id: 3, name: "three" }
|
|
>id : Symbol(id, Decl(arrayLiteralTypeInference.ts, 31, 9))
|
|
>name : Symbol(name, Decl(arrayLiteralTypeInference.ts, 31, 16))
|
|
|
|
]
|
|
|
|
var z2: { id: number }[] =
|
|
>z2 : Symbol(z2, Decl(arrayLiteralTypeInference.ts, 34, 3))
|
|
>id : Symbol(id, Decl(arrayLiteralTypeInference.ts, 34, 9))
|
|
|
|
[
|
|
new ActionA(),
|
|
>ActionA : Symbol(ActionA, Decl(arrayLiteralTypeInference.ts, 2, 1))
|
|
|
|
new ActionB()
|
|
>ActionB : Symbol(ActionB, Decl(arrayLiteralTypeInference.ts, 6, 1))
|
|
|
|
]
|
|
|
|
var z3: { id: number }[] =
|
|
>z3 : Symbol(z3, Decl(arrayLiteralTypeInference.ts, 40, 3))
|
|
>id : Symbol(id, Decl(arrayLiteralTypeInference.ts, 40, 9))
|
|
|
|
[
|
|
new Action(),
|
|
>Action : Symbol(Action, Decl(arrayLiteralTypeInference.ts, 0, 0))
|
|
|
|
new ActionA(),
|
|
>ActionA : Symbol(ActionA, Decl(arrayLiteralTypeInference.ts, 2, 1))
|
|
|
|
new ActionB()
|
|
>ActionB : Symbol(ActionB, Decl(arrayLiteralTypeInference.ts, 6, 1))
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|