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

Unified Diff: tests/language/src/NamedParametersTypeTest.dart

Issue 9559007: Update test.dart for detection output of machine formatted errors (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added diagnostic for @static-clean conflicts Created 8 years, 10 months 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/language/src/NamedParametersTypeTest.dart
diff --git a/tests/language/src/NamedParametersTypeTest.dart b/tests/language/src/NamedParametersTypeTest.dart
index 536395c2c80493b893e3ebe96e35f75322b4fb81..8d0e48c22bc102125420d6650cf83be44e7afcfa 100644
--- a/tests/language/src/NamedParametersTypeTest.dart
+++ b/tests/language/src/NamedParametersTypeTest.dart
@@ -21,14 +21,14 @@ class NamedParametersTypeTest {
acceptFunNumOptBool(funNum); // No error.
acceptFunNumOptBool(funNumOptBool); // No error.
try {
- acceptFunNumOptBool(funNumBool); // Throws an error.
+ acceptFunNumOptBool(funNumBool); /// static type error
} catch (TypeError error) {
result += 1;
Expect.stringEquals("(num, [b: bool]) => void", error.dstType);
Expect.stringEquals("(num, bool) => void", error.srcType);
}
try {
- acceptFunNumOptBool(funNumOptBoolX); // Throws an error.
+ acceptFunNumOptBool(funNumOptBoolX); /// static type error
} catch (TypeError error) {
result += 10;
Expect.stringEquals("(num, [b: bool]) => void", error.dstType);

Powered by Google App Engine
This is Rietveld 408576698