43 lines
1.1 KiB
Text
43 lines
1.1 KiB
Text
=== tests/cases/compiler/implicitAnyAnyReturningFunction.ts ===
|
|
function A() {
|
|
>A : () => any, Symbol(A,Decl(implicitAnyAnyReturningFunction.ts,0,0))
|
|
|
|
return <any>"";
|
|
><any>"" : any
|
|
>"" : string
|
|
}
|
|
|
|
function B() {
|
|
>B : () => any, Symbol(B,Decl(implicitAnyAnyReturningFunction.ts,2,1))
|
|
|
|
var someLocal: any = {};
|
|
>someLocal : any, Symbol(someLocal,Decl(implicitAnyAnyReturningFunction.ts,5,7))
|
|
>{} : {}
|
|
|
|
return someLocal;
|
|
>someLocal : any, Symbol(someLocal,Decl(implicitAnyAnyReturningFunction.ts,5,7))
|
|
}
|
|
|
|
class C {
|
|
>C : C, Symbol(C,Decl(implicitAnyAnyReturningFunction.ts,7,1))
|
|
|
|
public A() {
|
|
>A : () => any, Symbol(A,Decl(implicitAnyAnyReturningFunction.ts,9,9))
|
|
|
|
return <any>"";
|
|
><any>"" : any
|
|
>"" : string
|
|
}
|
|
|
|
public B() {
|
|
>B : () => any, Symbol(B,Decl(implicitAnyAnyReturningFunction.ts,12,5))
|
|
|
|
var someLocal: any = {};
|
|
>someLocal : any, Symbol(someLocal,Decl(implicitAnyAnyReturningFunction.ts,15,11))
|
|
>{} : {}
|
|
|
|
return someLocal;
|
|
>someLocal : any, Symbol(someLocal,Decl(implicitAnyAnyReturningFunction.ts,15,11))
|
|
}
|
|
}
|
|
|