Index: tests/compiler/dart2js/resolver_test.dart |
diff --git a/tests/compiler/dart2js/resolver_test.dart b/tests/compiler/dart2js/resolver_test.dart |
index bb212fefeaab2226eb33affff639a66daade38b3..5aeb9e54514f40b013154335bca8ac07154c7d92 100644 |
--- a/tests/compiler/dart2js/resolver_test.dart |
+++ b/tests/compiler/dart2js/resolver_test.dart |
@@ -1227,7 +1227,9 @@ testCantAssignMethods() { |
checkWarningOn(''' |
m() {} |
main() { m = 4; } |
- ''', [MessageKind.ASSIGNING_METHOD]); |
+ ''', [MessageKind.ASSIGNING_METHOD, |
+ // TODO(johnniwinther): Avoid duplicate warnings. |
+ MessageKind.NOT_ASSIGNABLE]); |
// Can't override instance methods |
checkWarningOn(''' |