Files
test-repo/tests/object_api/object_assign.js
T

12 lines
280 B
JavaScript
Raw Normal View History

2016-12-23 19:31:38 +00:00
/* @flow */
var export_ = Object.assign({}, {
foo: function(param) { return param; }
});
var decl_export_: { foo: any; bar: any } = Object.assign({}, export_);
let anyObj: Object = {};
Object.assign(anyObj, anyObj); // makes sure this terminates
module.exports = export_;