TypeScript/tests/baselines/reference/staticInstanceResolution.types
2015-04-15 16:44:20 -07:00

35 lines
772 B
Plaintext

=== tests/cases/compiler/staticInstanceResolution.ts ===
class Comment {
>Comment : Comment
public getDocCommentText()
>getDocCommentText : () => void
{
}
static getDocCommentText(comments: Comment[])
>getDocCommentText : (comments: Comment[]) => void
>comments : Comment[]
>Comment : Comment
{
comments[0].getDocCommentText();
>comments[0].getDocCommentText() : void
>comments[0].getDocCommentText : () => void
>comments[0] : Comment
>comments : Comment[]
>0 : number
>getDocCommentText : () => void
var c: Comment;
>c : Comment
>Comment : Comment
c.getDocCommentText();
>c.getDocCommentText() : void
>c.getDocCommentText : () => void
>c : Comment
>getDocCommentText : () => void
}
}