mirror of
https://github.com/hanzoai/prettier.git
synced 2026-09-24 17:02:04 +00:00
6 lines
145 B
JavaScript
6 lines
145 B
JavaScript
/* @flow */
|
|
|
|
const dict: {[key: string]: number} = {}
|
|
const k: any = 'foo'
|
|
const val: string = dict[k] // error: number incompatible with string
|