File: optionalPropertiesInClasses.symbols

package info (click to toggle)
node-typescript 5.0.4%2Bds1-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 459,116 kB
  • sloc: javascript: 1,972,754; makefile: 6; sh: 1
file content (37 lines) | stat: -rw-r--r-- 1,161 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
28
29
30
31
32
33
34
35
36
37
=== tests/cases/compiler/optionalPropertiesInClasses.ts ===
interface ifoo {
>ifoo : Symbol(ifoo, Decl(optionalPropertiesInClasses.ts, 0, 0))

	x?:number;
>x : Symbol(ifoo.x, Decl(optionalPropertiesInClasses.ts, 0, 16))

	y:number;
>y : Symbol(ifoo.y, Decl(optionalPropertiesInClasses.ts, 1, 11))
}

class C1 implements ifoo {
>C1 : Symbol(C1, Decl(optionalPropertiesInClasses.ts, 3, 1))
>ifoo : Symbol(ifoo, Decl(optionalPropertiesInClasses.ts, 0, 0))

	public y:number;
>y : Symbol(C1.y, Decl(optionalPropertiesInClasses.ts, 5, 26))
}

class C2 implements ifoo { // ERROR - still need 'y'
>C2 : Symbol(C2, Decl(optionalPropertiesInClasses.ts, 7, 1))
>ifoo : Symbol(ifoo, Decl(optionalPropertiesInClasses.ts, 0, 0))

	public x:number;
>x : Symbol(C2.x, Decl(optionalPropertiesInClasses.ts, 9, 26))
}

class C3 implements ifoo {
>C3 : Symbol(C3, Decl(optionalPropertiesInClasses.ts, 11, 1))
>ifoo : Symbol(ifoo, Decl(optionalPropertiesInClasses.ts, 0, 0))

	public x:number;
>x : Symbol(C3.x, Decl(optionalPropertiesInClasses.ts, 13, 26))

	public y:number;
>y : Symbol(C3.y, Decl(optionalPropertiesInClasses.ts, 14, 17))
}