TypeScript/tests/baselines/reference/anyAsFunctionCall.types
2014-08-15 14:37:48 -07:00

24 lines
371 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
var c = x(x);
>c : any
>x(x) : any
>x : any
>x : any