File tree Expand file tree Collapse file tree 3 files changed +14
-22
lines changed Expand file tree Collapse file tree 3 files changed +14
-22
lines changed Original file line number Diff line number Diff line change 12
12
/// ;
13
13
/// A map literal consists of zero or more entries. Each entry has a key and a
14
14
/// value. Each key and each value is denoted by an expression.
15
+ ///
15
16
/// @description Checks that it is a compile-time error if a map literal
16
17
/// does not end with '}'.
17
18
/// @author msyabro
18
19
19
-
20
20
main () {
21
- // ^
22
- // [cfe] unspecified
23
- var x = {"key1" : true , "key2" : false ;
24
- // ^
21
+ var x = {"key1" : true , "key2" : false ;
22
+ // ^
25
23
// [analyzer] unspecified
26
24
// [cfe] unspecified
27
- }
28
- //^
25
+ /**/ }
26
+ // ^
29
27
// [analyzer] unspecified
30
- // [cfe] unspecified
31
- // [error line 32, column 0]
32
- // [analyzer] unspecified
Original file line number Diff line number Diff line change 17
17
/// bracket of the switch statement's body is missing.
18
18
/// @author vasya
19
19
20
-
21
20
switchTest (value) {
22
- // ^
23
- // [cfe] unspecified
24
21
var result;
25
22
26
23
switch (value) {
24
+ // ^
25
+ // [cfe] unspecified
27
26
case 0 : result = 0 ; break ;
28
27
default : result = - 1 ;
29
28
return result;
30
- }
29
+ /**/ }
30
+ // ^
31
+ // [analyzer] unspecified
31
32
32
33
main () {}
33
- // [error line 34, column 0]
34
- // [analyzer] unspecified
Original file line number Diff line number Diff line change 22
22
/// implicitly) the type of exception object to be handled, one or two
23
23
/// exception parameters and a block statement.
24
24
/// 2. A finally clause, which consists of a block statement.
25
+ ///
25
26
/// @description Checks that it is a compile-time error if the try block is
26
27
/// missing the closing curly braces.
27
28
/// @author vasya
28
29
29
-
30
30
main () {
31
- // ^
32
- // [cfe] unspecified
33
31
try {
34
32
//^
35
33
// [analyzer] unspecified
@@ -39,6 +37,6 @@ main() {
39
37
// ^
40
38
// [analyzer] unspecified
41
39
// [cfe] unspecified
42
- }
43
- // [error line 44, column 0]
44
- // [analyzer] unspecified
40
+ /**/ }
41
+ // ^
42
+ // [analyzer] unspecified
You can’t perform that action at this time.
0 commit comments