TypeScript/tests/baselines/reference/anyAsFunctionCall.types
2015-04-15 16:44:20 -07:00

25 lines
390 B
Plaintext

=== tests/cases/conformance/types/any/anyAsFunctionCall.ts ===
// any is considered an untyped function call
// can be called except with type arguments which is an error
var x: any;
>x : any
var a = x();
>a : any
>x() : any
>x : any
var b = x('hello');
>b : any
>x('hello') : any
>x : any
>'hello' : string
var c = x(x);
>c : any
>x(x) : any
>x : any
>x : any