9 lines
115 B
TypeScript
9 lines
115 B
TypeScript
|
// @target: es6
|
||
|
interface I {
|
||
|
[s: number]: boolean;
|
||
|
}
|
||
|
|
||
|
var o: I = {
|
||
|
[+"foo"]: "",
|
||
|
[+"bar"]: 0
|
||
|
}
|