mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
29 lines
722 B
TypeScript
29 lines
722 B
TypeScript
//// [tests/cases/compiler/commentsOnObjectLiteral2.ts] ////
|
|
|
|
//// [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*/,
|
|
}
|
|
);
|
|
|
|
//// [commentsOnObjectLiteral2.js]
|
|
"use strict";
|
|
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*/,
|
|
});
|