File: typeValueConflict1.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 (23 lines) | stat: -rw-r--r-- 658 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
=== tests/cases/compiler/typeValueConflict1.ts ===
module M1 {
>M1 : Symbol(M1, Decl(typeValueConflict1.ts, 0, 0))

 export class A {
>A : Symbol(A, Decl(typeValueConflict1.ts, 0, 11))
 }
}
module M2 {
>M2 : Symbol(M2, Decl(typeValueConflict1.ts, 3, 1))

 var M1 = 0;
>M1 : Symbol(M1, Decl(typeValueConflict1.ts, 5, 4))

 // Should error.  M1 should bind to the variable, not to the module.
 class B extends M1.A {
>B : Symbol(B, Decl(typeValueConflict1.ts, 5, 12))
>M1.A : Symbol(M1.A, Decl(typeValueConflict1.ts, 0, 11))
>M1 : Symbol(M1, Decl(typeValueConflict1.ts, 0, 0))
>A : Symbol(M1.A, Decl(typeValueConflict1.ts, 0, 11))
 }
}