2014-08-21 02:07:24 +02:00
|
|
|
=== tests/cases/compiler/commentsTypeParameters.ts ===
|
|
|
|
class C</**docComment for type parameter*/ T> {
|
2015-04-13 23:01:57 +02:00
|
|
|
>C : C<T>, Symbol(C, Decl(commentsTypeParameters.ts, 0, 0))
|
|
|
|
>T : T, Symbol(T, Decl(commentsTypeParameters.ts, 0, 8))
|
2014-08-21 02:07:24 +02:00
|
|
|
|
|
|
|
method</**docComment of method type parameter */ U extends T>(a: U) {
|
2015-04-13 23:01:57 +02:00
|
|
|
>method : <U extends T>(a: U) => void, Symbol(method, Decl(commentsTypeParameters.ts, 0, 47))
|
|
|
|
>U : U, Symbol(U, Decl(commentsTypeParameters.ts, 1, 11))
|
|
|
|
>T : T, Symbol(T, Decl(commentsTypeParameters.ts, 0, 8))
|
|
|
|
>a : U, Symbol(a, Decl(commentsTypeParameters.ts, 1, 66))
|
|
|
|
>U : U, Symbol(U, Decl(commentsTypeParameters.ts, 1, 11))
|
2014-08-21 02:07:24 +02:00
|
|
|
}
|
|
|
|
static staticmethod</**docComment of method type parameter */ U>(a: U) {
|
2015-04-13 23:01:57 +02:00
|
|
|
>staticmethod : <U>(a: U) => void, Symbol(C.staticmethod, Decl(commentsTypeParameters.ts, 2, 5))
|
|
|
|
>U : U, Symbol(U, Decl(commentsTypeParameters.ts, 3, 24))
|
|
|
|
>a : U, Symbol(a, Decl(commentsTypeParameters.ts, 3, 69))
|
|
|
|
>U : U, Symbol(U, Decl(commentsTypeParameters.ts, 3, 24))
|
2014-08-21 02:07:24 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
private privatemethod</**docComment of method type parameter */ U extends T>(a: U) {
|
2015-04-13 23:01:57 +02:00
|
|
|
>privatemethod : <U extends T>(a: U) => void, Symbol(privatemethod, Decl(commentsTypeParameters.ts, 4, 5))
|
|
|
|
>U : U, Symbol(U, Decl(commentsTypeParameters.ts, 6, 26))
|
|
|
|
>T : T, Symbol(T, Decl(commentsTypeParameters.ts, 0, 8))
|
|
|
|
>a : U, Symbol(a, Decl(commentsTypeParameters.ts, 6, 81))
|
|
|
|
>U : U, Symbol(U, Decl(commentsTypeParameters.ts, 6, 26))
|
2014-08-21 02:07:24 +02:00
|
|
|
}
|
|
|
|
private static privatestaticmethod</**docComment of method type parameter */ U>(a: U) {
|
2015-04-13 23:01:57 +02:00
|
|
|
>privatestaticmethod : <U>(a: U) => void, Symbol(C.privatestaticmethod, Decl(commentsTypeParameters.ts, 7, 5))
|
|
|
|
>U : U, Symbol(U, Decl(commentsTypeParameters.ts, 8, 39))
|
|
|
|
>a : U, Symbol(a, Decl(commentsTypeParameters.ts, 8, 84))
|
|
|
|
>U : U, Symbol(U, Decl(commentsTypeParameters.ts, 8, 39))
|
2014-08-21 02:07:24 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
function compare</**type*/T>(a: T, b: T) {
|
2015-04-13 23:01:57 +02:00
|
|
|
>compare : <T>(a: T, b: T) => boolean, Symbol(compare, Decl(commentsTypeParameters.ts, 10, 1))
|
|
|
|
>T : T, Symbol(T, Decl(commentsTypeParameters.ts, 12, 17))
|
|
|
|
>a : T, Symbol(a, Decl(commentsTypeParameters.ts, 12, 29))
|
|
|
|
>T : T, Symbol(T, Decl(commentsTypeParameters.ts, 12, 17))
|
|
|
|
>b : T, Symbol(b, Decl(commentsTypeParameters.ts, 12, 34))
|
|
|
|
>T : T, Symbol(T, Decl(commentsTypeParameters.ts, 12, 17))
|
2014-08-21 02:07:24 +02:00
|
|
|
|
|
|
|
return a === b;
|
|
|
|
>a === b : boolean
|
2015-04-13 23:01:57 +02:00
|
|
|
>a : T, Symbol(a, Decl(commentsTypeParameters.ts, 12, 29))
|
|
|
|
>b : T, Symbol(b, Decl(commentsTypeParameters.ts, 12, 34))
|
2014-08-21 02:07:24 +02:00
|
|
|
}
|