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

Unified Diff: tests/language_strong/function_subtype2_test.dart

Issue 2995973002: Gardening: Revert "fix #30423, covariant parameter tearoff type should be Object" (TBR) (Closed)
Patch Set: Created 3 years, 4 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_strong/function_subtype2_test.dart
diff --git a/tests/language_strong/function_subtype2_test.dart b/tests/language_strong/function_subtype2_test.dart
index 0f92421d0750e8e6fce8553265533593eba8aa71..01a15f1cee14c3c5a78ca15be42a90b2814520cc 100644
--- a/tests/language_strong/function_subtype2_test.dart
+++ b/tests/language_strong/function_subtype2_test.dart
@@ -14,11 +14,11 @@ typedef void T4(int a, [int b, int c]);
typedef void T5([int a, int b, int c]);
class C<T, S, U> {
- get m1 => (T a, S b) {};
- get m2 => (T a, [S b]) {};
- get m3 => ([T a, S b]) {};
- get m4 => (T a, [S b, U c]) {};
- get m5 => ([T a, S b, U c]) {};
+ void m1(T a, S b) {}
+ void m2(T a, [S b]) {}
+ void m3([T a, S b]) {}
+ void m4(T a, [S b, U c]) {}
+ void m5([T a, S b, U c]) {}
}
main() {
« no previous file with comments | « tests/language_strong/covariant_subtyping_test.dart ('k') | tests/language_strong/function_subtype3_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698