==== tests/cases/compiler/genericGetter3.ts (2 errors) ==== class A { } class C { data: A; get x(): A { ~ !!! Accessors are only available when targeting ECMAScript 5 and higher. return this.data; } } var c = new C(); var r: string = c.x; ~ !!! Type 'A' is not assignable to type 'string'.