Index: tests/compiler/dart2js/message_kind_test.dart |
diff --git a/tests/compiler/dart2js/message_kind_test.dart b/tests/compiler/dart2js/message_kind_test.dart |
index 9cd634f9b320ac0478193324993a943c2848541c..a886f42b0a77d12b4f9cdf68bb0e54164564cd7c 100644 |
--- a/tests/compiler/dart2js/message_kind_test.dart |
+++ b/tests/compiler/dart2js/message_kind_test.dart |
@@ -14,8 +14,9 @@ import 'message_kind_helper.dart'; |
main(List<String> arguments) { |
List<MessageTemplate> examples = <MessageTemplate>[]; |
- List allMessageKinds = |
- MessageKind.values.toList()..addAll(SharedMessageKind.values); |
+ List allMessageKinds = [] |
+ ..addAll(MessageKind.values) |
+ ..addAll(SharedMessageKind.values); |
Lasse Reichstein Nielsen
2016/01/25 13:44:01
Wouldn't it be great if we had List.operator+? :)
|
for (var kind in allMessageKinds) { |
if (kind == SharedMessageKind.exampleMessage) continue; |