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

Unified Diff: tests/stub-generator/src/MintMakerPromiseWithStubsTest.dart

Issue 9017015: Dartc was not raising an error if an interface declared constructors without a default clause (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated the stub-generator tests to get rid of errors Created 9 years 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/stub-generator/src/MintMakerPromiseWithStubsTest.dart
diff --git a/tests/stub-generator/src/MintMakerPromiseWithStubsTest.dart b/tests/stub-generator/src/MintMakerPromiseWithStubsTest.dart
index 158f3d5884a2617feade75d9847a2711a3622cc0..3b2e94728526659976c30331ff82a715c8be20f7 100644
--- a/tests/stub-generator/src/MintMakerPromiseWithStubsTest.dart
+++ b/tests/stub-generator/src/MintMakerPromiseWithStubsTest.dart
@@ -99,19 +99,19 @@ class MintMakerPromiseWithStubsTest {
Promise<bool> p4 = new Promise<bool>();
Promise<bool> p5 = new Promise<bool>();
Promise<bool> p6 = new Promise<bool>();
- result.addCompleteHandler((_) {
+ result.addCompleteHandler((unused) {
expect.completesWithValue(sprouted.queryBalance(), 0 + 5)
- .then((_) => p2.complete(true));
+ .then((unused_) => p2.complete(true));
expect.completesWithValue(purse.queryBalance(), 100 - 5)
- .then((_) => p3.complete(true));
+ .then((unused_) => p3.complete(true));
result = sprouted.deposit(42, purse);
- expect.completesWithValue(result, 5 + 42).then((_) => p4.complete(true));
- result.addCompleteHandler((_) {
+ expect.completesWithValue(result, 5 + 42).then((unused__) => p4.complete(true));
+ result.addCompleteHandler((unused_) {
expect.completesWithValue(sprouted.queryBalance(), 0 + 5 + 42)
- .then((_) => p5.complete(true));
+ .then((unused___) => p5.complete(true));
expect.completesWithValue(purse.queryBalance(), 100 - 5 - 42)
- .then((_) => p6.complete(true));
+ .then((unused___) => p6.complete(true));
});
});
Promise<bool> done = new Promise<bool>();

Powered by Google App Engine
This is Rietveld 408576698