@@ -6,9 +6,17 @@ decoratorUsedBeforeDeclaration.ts(4,11): error TS2450: Enum 'Enum' used before i
6
6
decoratorUsedBeforeDeclaration.ts(4,16): error TS2729: Property 'No' is used before its initialization.
7
7
decoratorUsedBeforeDeclaration.ts(5,9): error TS2450: Enum 'Enum' used before its declaration.
8
8
decoratorUsedBeforeDeclaration.ts(5,14): error TS2729: Property 'No' is used before its initialization.
9
+ decoratorUsedBeforeDeclaration.ts(12,4): error TS2448: Block-scoped variable 'lambda' used before its declaration.
10
+ decoratorUsedBeforeDeclaration.ts(12,11): error TS2450: Enum 'Enum' used before its declaration.
11
+ decoratorUsedBeforeDeclaration.ts(13,9): error TS2450: Enum 'Enum' used before its declaration.
12
+ decoratorUsedBeforeDeclaration.ts(18,4): error TS2448: Block-scoped variable 'lambda' used before its declaration.
13
+ decoratorUsedBeforeDeclaration.ts(24,11): error TS2448: Block-scoped variable 'lambda' used before its declaration.
14
+ decoratorUsedBeforeDeclaration.ts(24,18): error TS2450: Enum 'Enum' used before its declaration.
15
+ decoratorUsedBeforeDeclaration.ts(24,33): error TS2450: Enum 'Enum' used before its declaration.
16
+ decoratorUsedBeforeDeclaration.ts(28,11): error TS2448: Block-scoped variable 'lambda' used before its declaration.
9
17
10
18
11
- ==== decoratorUsedBeforeDeclaration.ts (8 errors) ====
19
+ ==== decoratorUsedBeforeDeclaration.ts (16 errors) ====
12
20
@lambda(Enum.No)
13
21
~~~~~~
14
22
!!! error TS2448: Block-scoped variable 'lambda' used before its declaration.
@@ -45,22 +53,46 @@ decoratorUsedBeforeDeclaration.ts(5,14): error TS2729: Property 'No' is used bef
45
53
}
46
54
47
55
@lambda(Enum.No)
56
+ ~~~~~~
57
+ !!! error TS2448: Block-scoped variable 'lambda' used before its declaration.
58
+ !!! related TS2728 decoratorUsedBeforeDeclaration.ts:40:7: 'lambda' is declared here.
59
+ ~~~~
60
+ !!! error TS2450: Enum 'Enum' used before its declaration.
61
+ !!! related TS2728 decoratorUsedBeforeDeclaration.ts:35:6: 'Enum' is declared here.
48
62
@deco(Enum.No)
63
+ ~~~~
64
+ !!! error TS2450: Enum 'Enum' used before its declaration.
65
+ !!! related TS2728 decoratorUsedBeforeDeclaration.ts:35:6: 'Enum' is declared here.
49
66
greet() {
50
67
return "Hello, " + this.greeting;
51
68
}
52
69
53
70
@lambda
71
+ ~~~~~~
72
+ !!! error TS2448: Block-scoped variable 'lambda' used before its declaration.
73
+ !!! related TS2728 decoratorUsedBeforeDeclaration.ts:40:7: 'lambda' is declared here.
54
74
@deco
55
75
greet1() {
56
76
return "Hello, " + this.greeting;
57
77
}
58
78
59
79
greet2(@lambda(Enum.No) @deco(Enum.No) param) {
80
+ ~~~~~~
81
+ !!! error TS2448: Block-scoped variable 'lambda' used before its declaration.
82
+ !!! related TS2728 decoratorUsedBeforeDeclaration.ts:40:7: 'lambda' is declared here.
83
+ ~~~~
84
+ !!! error TS2450: Enum 'Enum' used before its declaration.
85
+ !!! related TS2728 decoratorUsedBeforeDeclaration.ts:35:6: 'Enum' is declared here.
86
+ ~~~~
87
+ !!! error TS2450: Enum 'Enum' used before its declaration.
88
+ !!! related TS2728 decoratorUsedBeforeDeclaration.ts:35:6: 'Enum' is declared here.
60
89
return "Hello, " + this.greeting;
61
90
}
62
91
63
92
greet3(@lambda @deco param) {
93
+ ~~~~~~
94
+ !!! error TS2448: Block-scoped variable 'lambda' used before its declaration.
95
+ !!! related TS2728 decoratorUsedBeforeDeclaration.ts:40:7: 'lambda' is declared here.
64
96
return "Hello, " + this.greeting;
65
97
}
66
98
}
0 commit comments