TypeScript/tests/cases/conformance/types/nonPrimitive/nonPrimitiveAccessProperty.ts
2017-01-18 14:57:20 +08:00

7 lines
116 B
TypeScript

var a: object;
a.toString();
a.nonExist(); // error
var { destructuring } = a; // error
var { ...rest } = a; // ok