mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
8 lines
183 B
JavaScript
8 lines
183 B
JavaScript
var arr = [];
|
|
var day = new Date;
|
|
|
|
// Date instances are numeric (see Flow_js.numeric) and thus can index into
|
|
// arrays.
|
|
arr[day] = 0;
|
|
(arr[day]: string); // error: number ~> string
|