mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +03:00
13 lines
241 B
TypeScript
13 lines
241 B
TypeScript
|
// @noImplicitAny: true
|
||
|
interface Flags { [name: string]: boolean }
|
||
|
let flags: Flags;
|
||
|
flags.b;
|
||
|
flags.f;
|
||
|
flags.isNotNecessarilyNeverFalse;
|
||
|
flags['this is fine'];
|
||
|
|
||
|
interface Empty { }
|
||
|
let empty: Empty;
|
||
|
empty.nope;
|
||
|
empty["not allowed either"];
|