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

Unified Diff: tests/language/generic_methods_generic_function_parameter_test.dart

Issue 2650823003: Fix generic function tests to satisfy analyzer (fixes #27728). (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | tests/language/generic_methods_type_expression_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/generic_methods_generic_function_parameter_test.dart
diff --git a/tests/language/generic_methods_generic_function_parameter_test.dart b/tests/language/generic_methods_generic_function_parameter_test.dart
index 45014c4edbfbafb79fcb359378b8f25ac07a7142..39922869bde79ee7ec3a4a6cc98da850bb05dd55 100644
--- a/tests/language/generic_methods_generic_function_parameter_test.dart
+++ b/tests/language/generic_methods_generic_function_parameter_test.dart
@@ -7,11 +7,11 @@
import "package:expect/expect.dart";
class C<T> {
- bar<V>(T t, int u, V v) => t + u + v;
- foo<U>(bar<V>(T t, U u, V v)) => bar<int>(1, 2, 3);
+ bar<V>(T t, int u, V v) => t.toString() + u.toString() + v.toString();
+ foo<U>(bar<V>(T t, U u, V v)) => bar<int>(1 as T, 2 as U, 3);
}
main() {
var c = new C<int>();
- Expect.equals(6, c.foo<int>(c.bar));
+ Expect.equals("123", c.foo<int>(c.bar));
}
« no previous file with comments | « no previous file | tests/language/generic_methods_type_expression_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698