Accessors are only available when targeting ECMAScript 5 and higher.

问题:

运行tsc classes.ts时报如下错误:

解决: