TypeScript/tests/baselines/reference/commentsOnObjectLiteral2.js

26 lines
642 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [commentsOnObjectLiteral2.ts]
var Person = makeClass(
{
/**
This is just another way to define a constructor.
@constructs
@param {string} name The name of the person.
*/
initialize: function(name) {
this.name = name;
} /* trailing comment 1*/,
2014-07-13 01:04:16 +02:00
}
);
//// [commentsOnObjectLiteral2.js]
var Person = makeClass({
/**
This is just another way to define a constructor.
@constructs
@param {string} name The name of the person.
*/
2014-07-13 01:04:16 +02:00
initialize: function (name) {
this.name = name;
} /* trailing comment 1*/
2014-07-13 01:04:16 +02:00
});