2014-08-15 23:33:16 +02:00
|
|
|
=== tests/cases/compiler/funduleOfFunctionWithoutReturnTypeAnnotation.ts ===
|
|
|
|
function fn() {
|
2015-04-13 22:54:22 +02:00
|
|
|
>fn : typeof fn, Symbol(fn,Decl(funduleOfFunctionWithoutReturnTypeAnnotation.ts,0,0),Decl(funduleOfFunctionWithoutReturnTypeAnnotation.ts,2,1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
return fn.n;
|
2015-04-13 22:54:22 +02:00
|
|
|
>fn.n : number, Symbol(fn.n,Decl(funduleOfFunctionWithoutReturnTypeAnnotation.ts,4,14))
|
|
|
|
>fn : typeof fn, Symbol(fn,Decl(funduleOfFunctionWithoutReturnTypeAnnotation.ts,0,0),Decl(funduleOfFunctionWithoutReturnTypeAnnotation.ts,2,1))
|
|
|
|
>n : number, Symbol(fn.n,Decl(funduleOfFunctionWithoutReturnTypeAnnotation.ts,4,14))
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
module fn {
|
2015-04-13 22:54:22 +02:00
|
|
|
>fn : typeof fn, Symbol(fn,Decl(funduleOfFunctionWithoutReturnTypeAnnotation.ts,0,0),Decl(funduleOfFunctionWithoutReturnTypeAnnotation.ts,2,1))
|
2014-08-15 23:33:16 +02:00
|
|
|
|
|
|
|
export var n = 1;
|
2015-04-13 22:54:22 +02:00
|
|
|
>n : number, Symbol(n,Decl(funduleOfFunctionWithoutReturnTypeAnnotation.ts,4,14))
|
2015-04-13 21:36:11 +02:00
|
|
|
>1 : number
|
2014-08-15 23:33:16 +02:00
|
|
|
}
|
|
|
|
|