25 lines
391 B
Plaintext
25 lines
391 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' : "hello"
|
|
|
|
var c = x(x);
|
|
>c : any
|
|
>x(x) : any
|
|
>x : any
|
|
>x : any
|
|
|