File: invocationExpressionInFunctionParameter.symbols

package info (click to toggle)
node-typescript 3.3.3333-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 324,548 kB
  • sloc: makefile: 6; sh: 3
file content (10 lines) | stat: -rw-r--r-- 559 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
=== tests/cases/compiler/invocationExpressionInFunctionParameter.ts ===
function foo1(val: string) {
>foo1 : Symbol(foo1, Decl(invocationExpressionInFunctionParameter.ts, 0, 0))
>val : Symbol(val, Decl(invocationExpressionInFunctionParameter.ts, 0, 14))
}
function foo3(x = foo1(123)) { //should error, 123 is not string
>foo3 : Symbol(foo3, Decl(invocationExpressionInFunctionParameter.ts, 1, 1))
>x : Symbol(x, Decl(invocationExpressionInFunctionParameter.ts, 2, 14))
>foo1 : Symbol(foo1, Decl(invocationExpressionInFunctionParameter.ts, 0, 0))
}