42 lines
545 B
Plaintext
42 lines
545 B
Plaintext
|
=== tests/cases/compiler/implicitAnyAnyReturningFunction.ts ===
|
||
|
function A() {
|
||
|
>A : () => any
|
||
|
|
||
|
return <any>"";
|
||
|
><any>"" : any
|
||
|
}
|
||
|
|
||
|
function B() {
|
||
|
>B : () => any
|
||
|
|
||
|
var someLocal: any = {};
|
||
|
>someLocal : any
|
||
|
>{} : {}
|
||
|
|
||
|
return someLocal;
|
||
|
>someLocal : any
|
||
|
}
|
||
|
|
||
|
class C {
|
||
|
>C : C
|
||
|
|
||
|
public A() {
|
||
|
>A : () => any
|
||
|
|
||
|
return <any>"";
|
||
|
><any>"" : any
|
||
|
}
|
||
|
|
||
|
public B() {
|
||
|
>B : () => any
|
||
|
|
||
|
var someLocal: any = {};
|
||
|
>someLocal : any
|
||
|
>{} : {}
|
||
|
|
||
|
return someLocal;
|
||
|
>someLocal : any
|
||
|
}
|
||
|
}
|
||
|
|