TypeScript/tests/cases/compiler/commentsOnObjectLiteral3.ts

21 lines
360 B
TypeScript

// @removeComments: false
// @target: ES5
var v = {
//property
prop: 1 /* multiple trailing comments */ /*trailing comments*/,
//property
func: function () {
},
//PropertyName + CallSignature
func1() { },
//getter
get a() {
return this.prop;
} /*trailing 1*/,
//setter
set a(value) {
this.prop = value;
} // trailing 2
};