TypeScript/tests/baselines/reference/functionWithDefaultParameterWithNoStatements4.types
2015-04-13 14:29:37 -07:00

12 lines
545 B
Plaintext

=== tests/cases/compiler/functionWithDefaultParameterWithNoStatements4.ts ===
function foo(a = ``) { }
>foo : (a?: string) => void, Symbol(foo, Decl(functionWithDefaultParameterWithNoStatements4.ts, 0, 0))
>a : string, Symbol(a, Decl(functionWithDefaultParameterWithNoStatements4.ts, 0, 13))
>`` : string
function bar(a = ``) {
>bar : (a?: string) => void, Symbol(bar, Decl(functionWithDefaultParameterWithNoStatements4.ts, 0, 24))
>a : string, Symbol(a, Decl(functionWithDefaultParameterWithNoStatements4.ts, 2, 13))
>`` : string
}