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