TypeScript/tests/baselines/reference/objectLiteralWidened.js

30 lines
443 B
JavaScript
Raw Normal View History

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]
// 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
}
};