File: objectTypeLiteralSyntax2.symbols

package info (click to toggle)
node-typescript 4.9.5%2Bds1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 533,908 kB
  • sloc: javascript: 2,018,330; makefile: 7; sh: 1
file content (27 lines) | stat: -rw-r--r-- 797 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
25
26
27
=== tests/cases/conformance/types/objectTypeLiteral/objectTypeLiteralSyntax2.ts ===
var x: {
>x : Symbol(x, Decl(objectTypeLiteralSyntax2.ts, 0, 3))

    foo: string,
>foo : Symbol(foo, Decl(objectTypeLiteralSyntax2.ts, 0, 8))

    bar: string
>bar : Symbol(bar, Decl(objectTypeLiteralSyntax2.ts, 1, 16))
}

// ASI makes this work
var y: {
>y : Symbol(y, Decl(objectTypeLiteralSyntax2.ts, 6, 3))

    foo: string
>foo : Symbol(foo, Decl(objectTypeLiteralSyntax2.ts, 6, 8))

    bar: string
>bar : Symbol(bar, Decl(objectTypeLiteralSyntax2.ts, 7, 15))
}

var z: { foo: string bar: string }
>z : Symbol(z, Decl(objectTypeLiteralSyntax2.ts, 11, 3))
>foo : Symbol(foo, Decl(objectTypeLiteralSyntax2.ts, 11, 8))
>bar : Symbol(bar, Decl(objectTypeLiteralSyntax2.ts, 11, 20))