Skip to content

Commit ae78adb

Browse files
committed
fixed compilation
1 parent 3d1d8cd commit ae78adb

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/checkstyle/checks/type/VarTypeHintCheckTest.hx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ class VarTypeHintCheckTest extends CheckTestCase<VarTypeHintCheckTests> {
1313
"test15", "test26", "test27", "test28", "test31",
1414
"test32", "test33", "test34", "test39", "test41"
1515
]) {
16-
return '"$t" should have a type hint';
16+
'"$t" should have a type hint';
1717
}];
1818

1919
assertMessages(check, LOCAL_VARS, messages);
2020
#if haxe4
2121
assertMessages(check, LOCAL_FINALS, messages);
2222

2323
messages = [for (t in ["test1", "test9", "test13", "test26", "test32", "test39"]) {
24-
return '"$t" should have a type hint';
24+
'"$t" should have a type hint';
2525
}];
2626
assertMessages(check, MODULE_LEVEL_VARS, messages);
2727
assertMessages(check, MODULE_LEVEL_FINALS, messages);
@@ -39,15 +39,15 @@ class VarTypeHintCheckTest extends CheckTestCase<VarTypeHintCheckTests> {
3939
assertNoMsg(check, SUPPRESSED_LOCAL_VARS);
4040

4141
var messages:Array<String> = [for (t in ["test1", "test2", "test3", "test6", "test12"]) {
42-
return '"$t" should have a type hint';
42+
'"$t" should have a type hint';
4343
}];
4444
messages = messages.concat([
4545
for (t in ["test16", "test17", "test20", "test21", "test22", "test29", "test30"]) {
46-
return '"$t" type hint not needed';
46+
'"$t" type hint not needed';
4747
}
4848
]);
4949
messages = messages.concat([for (t in ["test32", "test33", "test34"]) {
50-
return '"$t" should have a type hint';
50+
'"$t" should have a type hint';
5151
}]);
5252
messages.push('"test40" type hint not needed');
5353

@@ -75,13 +75,13 @@ class VarTypeHintCheckTest extends CheckTestCase<VarTypeHintCheckTests> {
7575
check.typeHintPolicy = INFER_ALL;
7676
assertNoMsg(check, SUPPRESSED_LOCAL_VARS);
7777
var messages:Array<String> = [for (t in ["test1", "test2", "test3", "test6", "test12"]) {
78-
return '"$t" should have a type hint';
78+
'"$t" should have a type hint';
7979
}];
8080
messages = messages.concat([for (t in [
8181
"test16", "test17", "test20", "test21", "test22", "test29",
8282
"test30", "test35", "test36", "test37", "test38", "test40"
8383
]) {
84-
return '"$t" type hint not needed';
84+
'"$t" type hint not needed';
8585
}]);
8686

8787
assertMessages(check, LOCAL_VARS, messages);

0 commit comments

Comments
 (0)