46 lines
2.2 KiB
Text
46 lines
2.2 KiB
Text
=== tests/cases/compiler/commentsTypeParameters.ts ===
|
|
class C</**docComment for type parameter*/ T> {
|
|
>C : Symbol(C, Decl(commentsTypeParameters.ts, 0, 0))
|
|
>T : Symbol(T, Decl(commentsTypeParameters.ts, 0, 8))
|
|
|
|
method</**docComment of method type parameter */ U extends T>(a: U) {
|
|
>method : Symbol(method, Decl(commentsTypeParameters.ts, 0, 47))
|
|
>U : Symbol(U, Decl(commentsTypeParameters.ts, 1, 11))
|
|
>T : Symbol(T, Decl(commentsTypeParameters.ts, 0, 8))
|
|
>a : Symbol(a, Decl(commentsTypeParameters.ts, 1, 66))
|
|
>U : Symbol(U, Decl(commentsTypeParameters.ts, 1, 11))
|
|
}
|
|
static staticmethod</**docComment of method type parameter */ U>(a: U) {
|
|
>staticmethod : Symbol(C.staticmethod, Decl(commentsTypeParameters.ts, 2, 5))
|
|
>U : Symbol(U, Decl(commentsTypeParameters.ts, 3, 24))
|
|
>a : Symbol(a, Decl(commentsTypeParameters.ts, 3, 69))
|
|
>U : Symbol(U, Decl(commentsTypeParameters.ts, 3, 24))
|
|
}
|
|
|
|
private privatemethod</**docComment of method type parameter */ U extends T>(a: U) {
|
|
>privatemethod : Symbol(privatemethod, Decl(commentsTypeParameters.ts, 4, 5))
|
|
>U : Symbol(U, Decl(commentsTypeParameters.ts, 6, 26))
|
|
>T : Symbol(T, Decl(commentsTypeParameters.ts, 0, 8))
|
|
>a : Symbol(a, Decl(commentsTypeParameters.ts, 6, 81))
|
|
>U : Symbol(U, Decl(commentsTypeParameters.ts, 6, 26))
|
|
}
|
|
private static privatestaticmethod</**docComment of method type parameter */ U>(a: U) {
|
|
>privatestaticmethod : Symbol(C.privatestaticmethod, Decl(commentsTypeParameters.ts, 7, 5))
|
|
>U : Symbol(U, Decl(commentsTypeParameters.ts, 8, 39))
|
|
>a : Symbol(a, Decl(commentsTypeParameters.ts, 8, 84))
|
|
>U : Symbol(U, Decl(commentsTypeParameters.ts, 8, 39))
|
|
}
|
|
}
|
|
|
|
function compare</**type*/T>(a: T, b: T) {
|
|
>compare : Symbol(compare, Decl(commentsTypeParameters.ts, 10, 1))
|
|
>T : Symbol(T, Decl(commentsTypeParameters.ts, 12, 17))
|
|
>a : Symbol(a, Decl(commentsTypeParameters.ts, 12, 29))
|
|
>T : Symbol(T, Decl(commentsTypeParameters.ts, 12, 17))
|
|
>b : Symbol(b, Decl(commentsTypeParameters.ts, 12, 34))
|
|
>T : Symbol(T, Decl(commentsTypeParameters.ts, 12, 17))
|
|
|
|
return a === b;
|
|
>a : Symbol(a, Decl(commentsTypeParameters.ts, 12, 29))
|
|
>b : Symbol(b, Decl(commentsTypeParameters.ts, 12, 34))
|
|
}
|