23 lines
544 B
Plaintext
23 lines
544 B
Plaintext
=== tests/cases/conformance/types/tuple/wideningTuples2.ts ===
|
|
var foo: () => [any] = function bar() {
|
|
>foo : () => [any]
|
|
>function bar() { let intermediate = bar(); intermediate = [""]; return [undefined];} : () => [any]
|
|
>bar : () => [any]
|
|
|
|
let intermediate = bar();
|
|
>intermediate : [any]
|
|
>bar() : [any]
|
|
>bar : () => [any]
|
|
|
|
intermediate = [""];
|
|
>intermediate = [""] : [string]
|
|
>intermediate : [any]
|
|
>[""] : [string]
|
|
>"" : ""
|
|
|
|
return [undefined];
|
|
>[undefined] : [undefined]
|
|
>undefined : undefined
|
|
|
|
};
|