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

17 lines
330 B
Plaintext

=== tests/cases/compiler/functionWithDefaultParameterWithNoStatements16.ts ===
var v: any[];
>v : any[]
function foo(a = bar()) { }
>foo : (a?: void) => void
>a : void
>bar() : void
>bar : (a?: void) => void
function bar(a = foo()) {
>bar : (a?: void) => void
>a : void
>foo() : void
>foo : (a?: void) => void
}