32 lines
819 B
Plaintext
32 lines
819 B
Plaintext
=== tests/cases/conformance/types/typeRelationships/widenedTypes/objectLiteralWidened.ts ===
|
|
// object literal properties are widened to any
|
|
|
|
var x = {
|
|
>x : Symbol(x, Decl(objectLiteralWidened.ts, 2, 3))
|
|
|
|
foo: null,
|
|
>foo : Symbol(foo, Decl(objectLiteralWidened.ts, 2, 9))
|
|
|
|
bar: undefined
|
|
>bar : Symbol(bar, Decl(objectLiteralWidened.ts, 3, 14))
|
|
>undefined : Symbol(undefined)
|
|
}
|
|
|
|
var y = {
|
|
>y : Symbol(y, Decl(objectLiteralWidened.ts, 7, 3))
|
|
|
|
foo: null,
|
|
>foo : Symbol(foo, Decl(objectLiteralWidened.ts, 7, 9))
|
|
|
|
bar: {
|
|
>bar : Symbol(bar, Decl(objectLiteralWidened.ts, 8, 14))
|
|
|
|
baz: null,
|
|
>baz : Symbol(baz, Decl(objectLiteralWidened.ts, 9, 10))
|
|
|
|
boo: undefined
|
|
>boo : Symbol(boo, Decl(objectLiteralWidened.ts, 10, 18))
|
|
>undefined : Symbol(undefined)
|
|
}
|
|
}
|