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

24 lines
551 B
Plaintext
Raw Normal View History

2014-07-13 01:04:16 +02:00
==== tests/cases/compiler/commentsOnObjectLiteral3.ts (2 errors) ====
var v = {
//property
prop: 1,
//property
func: function () {
},
//PropertyName + CallSignature
func1() { },
//getter
get a() {
~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
return this.prop;
},
//setter
set a(value) {
~
!!! Accessors are only available when targeting ECMAScript 5 and higher.
this.prop = value;
}
};