Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Unified Diff: tests/compiler/dart2js/resolver_test.dart

Issue 11412245: MalformedType used for all invalid type annotations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Bug fixes Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tests/compiler/dart2js/resolver_test.dart
diff --git a/tests/compiler/dart2js/resolver_test.dart b/tests/compiler/dart2js/resolver_test.dart
index 95e5b4746aa333552642070244a472e3d1a90700..2b1fac685f89ecf2bbb8ade02342fb9bf43823b3 100644
--- a/tests/compiler/dart2js/resolver_test.dart
+++ b/tests/compiler/dart2js/resolver_test.dart
@@ -393,7 +393,7 @@ testTypeAnnotation() {
// Test that we get a warning when Foo is not defined.
Map mapping = compiler.resolveStatement(statement).map;
- Expect.equals(1, mapping.length); // bar has an element.
+ Expect.equals(2, mapping.length); // Both Foo and bar have an element.
Expect.equals(1, compiler.warnings.length);
Node warningNode = compiler.warnings[0].node;

Powered by Google App Engine
This is Rietveld 408576698