TypeScript/tests/baselines/reference/contextualTypingOfAccessors.errors.txt

18 lines
466 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== 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.
}