TypeScript/tests/baselines/reference/declFileTypeAnnotationTypeQuery.types

93 lines
3.6 KiB
Plaintext
Raw Normal View History

2014-11-11 01:33:06 +01:00
=== tests/cases/compiler/declFileTypeAnnotationTypeQuery.ts ===
class c {
2015-04-13 23:01:57 +02:00
>c : c, Symbol(c, Decl(declFileTypeAnnotationTypeQuery.ts, 0, 0))
2014-11-11 01:33:06 +01:00
}
module m {
2015-04-13 23:01:57 +02:00
>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTypeQuery.ts, 2, 1))
2014-11-11 01:33:06 +01:00
export class c {
2015-04-13 23:01:57 +02:00
>c : c, Symbol(c, Decl(declFileTypeAnnotationTypeQuery.ts, 3, 10))
2014-11-11 01:33:06 +01:00
}
export class g<T> {
2015-04-13 23:01:57 +02:00
>g : g<T>, Symbol(g, Decl(declFileTypeAnnotationTypeQuery.ts, 5, 5))
>T : T, Symbol(T, Decl(declFileTypeAnnotationTypeQuery.ts, 6, 19))
2014-11-11 01:33:06 +01:00
}
}
class g<T> {
2015-04-13 23:01:57 +02:00
>g : g<T>, Symbol(g, Decl(declFileTypeAnnotationTypeQuery.ts, 8, 1))
>T : T, Symbol(T, Decl(declFileTypeAnnotationTypeQuery.ts, 9, 8))
2014-11-11 01:33:06 +01:00
}
// Just the name
function foo(): typeof c {
2015-04-13 23:01:57 +02:00
>foo : () => typeof c, Symbol(foo, Decl(declFileTypeAnnotationTypeQuery.ts, 10, 1))
>c : typeof c, Symbol(c, Decl(declFileTypeAnnotationTypeQuery.ts, 0, 0))
2014-11-11 01:33:06 +01:00
return c;
2015-04-13 23:01:57 +02:00
>c : typeof c, Symbol(c, Decl(declFileTypeAnnotationTypeQuery.ts, 0, 0))
2014-11-11 01:33:06 +01:00
}
function foo2() {
2015-04-13 23:01:57 +02:00
>foo2 : () => typeof c, Symbol(foo2, Decl(declFileTypeAnnotationTypeQuery.ts, 15, 1))
2014-11-11 01:33:06 +01:00
return c;
2015-04-13 23:01:57 +02:00
>c : typeof c, Symbol(c, Decl(declFileTypeAnnotationTypeQuery.ts, 0, 0))
2014-11-11 01:33:06 +01:00
}
// Qualified name
function foo3(): typeof m.c {
2015-04-13 23:01:57 +02:00
>foo3 : () => typeof m.c, Symbol(foo3, Decl(declFileTypeAnnotationTypeQuery.ts, 18, 1))
>m.c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationTypeQuery.ts, 3, 10))
>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTypeQuery.ts, 2, 1))
>c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationTypeQuery.ts, 3, 10))
2014-11-11 01:33:06 +01:00
return m.c;
2015-04-13 23:01:57 +02:00
>m.c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationTypeQuery.ts, 3, 10))
>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTypeQuery.ts, 2, 1))
>c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationTypeQuery.ts, 3, 10))
2014-11-11 01:33:06 +01:00
}
function foo4() {
2015-04-13 23:01:57 +02:00
>foo4 : () => typeof m.c, Symbol(foo4, Decl(declFileTypeAnnotationTypeQuery.ts, 23, 1))
2014-11-11 01:33:06 +01:00
return m.c;
2015-04-13 23:01:57 +02:00
>m.c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationTypeQuery.ts, 3, 10))
>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTypeQuery.ts, 2, 1))
>c : typeof m.c, Symbol(m.c, Decl(declFileTypeAnnotationTypeQuery.ts, 3, 10))
2014-11-11 01:33:06 +01:00
}
// Just the name with type arguments
function foo5(): typeof g {
2015-04-13 23:01:57 +02:00
>foo5 : () => typeof g, Symbol(foo5, Decl(declFileTypeAnnotationTypeQuery.ts, 26, 1))
>g : typeof g, Symbol(g, Decl(declFileTypeAnnotationTypeQuery.ts, 8, 1))
2014-11-11 01:33:06 +01:00
return g;
2015-04-13 23:01:57 +02:00
>g : typeof g, Symbol(g, Decl(declFileTypeAnnotationTypeQuery.ts, 8, 1))
2014-11-11 01:33:06 +01:00
}
function foo6() {
2015-04-13 23:01:57 +02:00
>foo6 : () => typeof g, Symbol(foo6, Decl(declFileTypeAnnotationTypeQuery.ts, 31, 1))
2014-11-11 01:33:06 +01:00
return g;
2015-04-13 23:01:57 +02:00
>g : typeof g, Symbol(g, Decl(declFileTypeAnnotationTypeQuery.ts, 8, 1))
2014-11-11 01:33:06 +01:00
}
// Qualified name with type arguments
function foo7(): typeof m.g {
2015-04-13 23:01:57 +02:00
>foo7 : () => typeof m.g, Symbol(foo7, Decl(declFileTypeAnnotationTypeQuery.ts, 34, 1))
>m.g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationTypeQuery.ts, 5, 5))
>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTypeQuery.ts, 2, 1))
>g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationTypeQuery.ts, 5, 5))
2014-11-11 01:33:06 +01:00
return m.g
2015-04-13 23:01:57 +02:00
>m.g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationTypeQuery.ts, 5, 5))
>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTypeQuery.ts, 2, 1))
>g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationTypeQuery.ts, 5, 5))
2014-11-11 01:33:06 +01:00
}
function foo8() {
2015-04-13 23:01:57 +02:00
>foo8 : () => typeof m.g, Symbol(foo8, Decl(declFileTypeAnnotationTypeQuery.ts, 39, 1))
2014-11-11 01:33:06 +01:00
return m.g
2015-04-13 23:01:57 +02:00
>m.g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationTypeQuery.ts, 5, 5))
>m : typeof m, Symbol(m, Decl(declFileTypeAnnotationTypeQuery.ts, 2, 1))
>g : typeof m.g, Symbol(m.g, Decl(declFileTypeAnnotationTypeQuery.ts, 5, 5))
2014-11-11 01:33:06 +01:00
}