TypeScript/tests/baselines/reference/contextualTypingOfAccessors.errors.txt
2014-07-12 17:30:19 -07:00

18 lines
466 B
Plaintext

==== tests/cases/compiler/contextualTypingOfAccessors.ts (2 errors) ====
// not contextually typing accessors
var x: {
foo: (x: number) => number;
}
x = {
get foo() {
~~~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
return (n)=>n
},
set foo(x) {}
~~~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
}