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

Unified Diff: tests/lib_strong/collection/hash_set_test.dart

Issue 2667343005: Infer Null for return type of functions with empty returns. (Closed)
Patch Set: Address comments, fix 28630, ddc expectations Created 3 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/lib_strong/collection/hash_set_test.dart
diff --git a/tests/lib_strong/collection/hash_set_test.dart b/tests/lib_strong/collection/hash_set_test.dart
index ab03284ea075001fe9d5ecb85a5297eac2b2f317..c8ede1f9aa1997ed7ae1e1a0e4f6e589a92a1f05 100644
--- a/tests/lib_strong/collection/hash_set_test.dart
+++ b/tests/lib_strong/collection/hash_set_test.dart
@@ -9,8 +9,8 @@ void main() {
// Test customized sets.
// Regression test for issue http://dartbug.com/18109
- hash(s) => s.toLowerCase().hashCode;
- equals(a, b) => a.toLowerCase() == b.toLowerCase();
+ int hash(s) => s.toLowerCase().hashCode;
+ bool equals(a, b) => a.toLowerCase() == b.toLowerCase();
for (var m in [
new HashSet<String>(equals: equals, hashCode: hash),
@@ -27,8 +27,8 @@ void main() {
}
}
- abshash(n) => n.abs();
- abseq(a, b) => a.abs() == b.abs();
+ int abshash(n) => n.abs();
+ bool abseq(a, b) => a.abs() == b.abs();
for (var m in [
new HashSet<int>(equals: abseq, hashCode: abshash),
new LinkedHashSet<int>(equals: abseq, hashCode: abshash),

Powered by Google App Engine
This is Rietveld 408576698