2014-07-13 01:04:16 +02:00
|
|
|
//// [objectLiteralWidened.ts]
|
|
|
|
// object literal properties are widened to any
|
|
|
|
|
|
|
|
var x = {
|
|
|
|
foo: null,
|
|
|
|
bar: undefined
|
|
|
|
}
|
|
|
|
|
|
|
|
var y = {
|
|
|
|
foo: null,
|
|
|
|
bar: {
|
|
|
|
baz: null,
|
|
|
|
boo: undefined
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
//// [objectLiteralWidened.js]
|
2014-08-12 00:54:12 +02:00
|
|
|
// object literal properties are widened to any
|
2014-07-13 01:04:16 +02:00
|
|
|
var x = {
|
|
|
|
foo: null,
|
|
|
|
bar: undefined
|
|
|
|
};
|
|
|
|
var y = {
|
|
|
|
foo: null,
|
|
|
|
bar: {
|
|
|
|
baz: null,
|
|
|
|
boo: undefined
|
|
|
|
}
|
|
|
|
};
|