mirror of
https://github.com/swc-project/swc.git
synced 2024-12-26 23:27:56 +03:00
17 lines
235 B
TypeScript
17 lines
235 B
TypeScript
// @noImplicitAny: true
|
|
enum E {
|
|
A = "a",
|
|
B = "b",
|
|
C = "c",
|
|
}
|
|
|
|
interface Item {
|
|
a: string;
|
|
b: number;
|
|
c: boolean;
|
|
}
|
|
|
|
declare const item: Item;
|
|
declare const e: E;
|
|
const snb: string | number | boolean = item[e];
|