7 lines
205 B
TypeScript
7 lines
205 B
TypeScript
//// [numericIndexerConstraint5.ts]
|
|
var x = { name: "x", 0: new Date() };
|
|
var z: { [name: number]: string } = x;
|
|
|
|
//// [numericIndexerConstraint5.js]
|
|
var x = { name: "x", 0: new Date() };
|
|
var z = x;
|