TypeScript/tests/baselines/reference/staticInstanceResolution.js
2014-07-12 17:30:19 -07:00

30 lines
606 B
TypeScript

//// [staticInstanceResolution.ts]
class Comment {
public getDocCommentText()
{
}
static getDocCommentText(comments: Comment[])
{
comments[0].getDocCommentText();
var c: Comment;
c.getDocCommentText();
}
}
//// [staticInstanceResolution.js]
var Comment = (function () {
function Comment() {
}
Comment.prototype.getDocCommentText = function () {
};
Comment.getDocCommentText = function (comments) {
comments[0].getDocCommentText();
var c;
c.getDocCommentText();
};
return Comment;
})();