File: arrowFunctionWithObjectLiteralBody5.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 (24 lines) | stat: -rw-r--r-- 1,457 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
=== tests/cases/compiler/arrowFunctionWithObjectLiteralBody5.ts ===
var a = () => <Error>{ name: "foo", message: "bar" };      
>a : Symbol(a, Decl(arrowFunctionWithObjectLiteralBody5.ts, 0, 3))
>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
>name : Symbol(name, Decl(arrowFunctionWithObjectLiteralBody5.ts, 0, 22))
>message : Symbol(message, Decl(arrowFunctionWithObjectLiteralBody5.ts, 0, 35))

var b = () => (<Error>{ name: "foo", message: "bar" });    
>b : Symbol(b, Decl(arrowFunctionWithObjectLiteralBody5.ts, 2, 3))
>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
>name : Symbol(name, Decl(arrowFunctionWithObjectLiteralBody5.ts, 2, 23))
>message : Symbol(message, Decl(arrowFunctionWithObjectLiteralBody5.ts, 2, 36))

var c = () => ({ name: "foo", message: "bar" });           
>c : Symbol(c, Decl(arrowFunctionWithObjectLiteralBody5.ts, 4, 3))
>name : Symbol(name, Decl(arrowFunctionWithObjectLiteralBody5.ts, 4, 16))
>message : Symbol(message, Decl(arrowFunctionWithObjectLiteralBody5.ts, 4, 29))

var d = () => ((<Error>({ name: "foo", message: "bar" })));
>d : Symbol(d, Decl(arrowFunctionWithObjectLiteralBody5.ts, 6, 3))
>Error : Symbol(Error, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
>name : Symbol(name, Decl(arrowFunctionWithObjectLiteralBody5.ts, 6, 25))
>message : Symbol(message, Decl(arrowFunctionWithObjectLiteralBody5.ts, 6, 38))