swc/crates/swc_ecma_parser/tests/tsc/anyPropertyAccess.ts

7 lines
120 B
TypeScript

var x: any;
var a = x.foo;
var b = x['foo'];
var c = x['fn']();
var d = x.bar.baz;
var e = x[0].foo;
var f = x['0'].bar;