TypeScript/tests/baselines/reference/commentsTypeParameters.types
2015-04-13 14:29:37 -07:00

48 lines
2.4 KiB
Plaintext

=== tests/cases/compiler/commentsTypeParameters.ts ===
class C</**docComment for type parameter*/ T> {
>C : C<T>, Symbol(C, Decl(commentsTypeParameters.ts, 0, 0))
>T : T, Symbol(T, Decl(commentsTypeParameters.ts, 0, 8))
method</**docComment of method type parameter */ U extends T>(a: U) {
>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))
}
static staticmethod</**docComment of method type parameter */ U>(a: U) {
>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))
}
private privatemethod</**docComment of method type parameter */ U extends T>(a: U) {
>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))
}
private static privatestaticmethod</**docComment of method type parameter */ U>(a: U) {
>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))
}
}
function compare</**type*/T>(a: T, b: T) {
>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))
return a === b;
>a === b : boolean
>a : T, Symbol(a, Decl(commentsTypeParameters.ts, 12, 29))
>b : T, Symbol(b, Decl(commentsTypeParameters.ts, 12, 34))
}