TypeScript/tests/baselines/reference/staticInstanceResolution.types

35 lines
772 B
Plaintext
Raw Normal View History

2014-08-15 23:33:16 +02:00
=== tests/cases/compiler/staticInstanceResolution.ts ===
class Comment {
>Comment : Comment
2014-08-15 23:33:16 +02:00
public getDocCommentText()
>getDocCommentText : () => void
2014-08-15 23:33:16 +02:00
{
}
static getDocCommentText(comments: Comment[])
>getDocCommentText : (comments: Comment[]) => void
>comments : Comment[]
>Comment : Comment
2014-08-15 23:33:16 +02:00
{
comments[0].getDocCommentText();
>comments[0].getDocCommentText() : void
>comments[0].getDocCommentText : () => void
2014-08-15 23:33:16 +02:00
>comments[0] : Comment
>comments : Comment[]
2015-04-13 21:36:11 +02:00
>0 : number
>getDocCommentText : () => void
2014-08-15 23:33:16 +02:00
var c: Comment;
>c : Comment
>Comment : Comment
2014-08-15 23:33:16 +02:00
c.getDocCommentText();
>c.getDocCommentText() : void
>c.getDocCommentText : () => void
>c : Comment
>getDocCommentText : () => void
2014-08-15 23:33:16 +02:00
}
}