forked from palantir/tslint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.ts.fix
55 lines (45 loc) · 867 Bytes
/
test.ts.fix
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
namespace N {
export type T = number;
export const x: T = 0;
export namespace M {
export type U = T;
export const y: U = 0;
export const z: U = 0;
export const a = x;
export const b = y;
export const c = z;
}
#if typescript >= 3.8.0
export class C {
#p: string;
constructor() {
this.#p = 'C!';
}
getP() {
return this.#p;
}
}
#endif
}
namespace A.B.C1 {
export const D = 7;
}
namespace A.B.C2 {
const copy = C1.D;
}
import * as B from "./b.test";
declare module "./b.test" {
const x: T;
}
namespace X {
export type T = number;
namespace Y {
type T = string;
// This qualifier *is* necessary since 'X.T' is shadowed.
const x: X.T = 0;
}
}
enum E {
A,
B = A
}