Index: tests/compiler/dart2js/related_types.dart |
diff --git a/tests/compiler/dart2js/related_types.dart b/tests/compiler/dart2js/related_types.dart |
index 9a20d0b2bf07a506d08a08f0556491c37e73e2a4..54d9ab873b7a2e822597648b4926892215159b76 100644 |
--- a/tests/compiler/dart2js/related_types.dart |
+++ b/tests/compiler/dart2js/related_types.dart |
@@ -97,8 +97,10 @@ class RelatedTypesChecker extends TraversalVisitor<DartType, dynamic> { |
/// a hint otherwise. |
void checkRelated(Node node, DartType left, DartType right) { |
if (hasEmptyIntersection(left, right)) { |
- compiler.reportHint( |
- node, MessageKind.NO_COMMON_SUBTYPES, {'left': left, 'right': right}); |
+ compiler.reportHint(compiler.createMessage( |
+ node, |
+ MessageKind.NO_COMMON_SUBTYPES, |
+ {'left': left, 'right': right})); |
} |
} |