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

Unified Diff: pkg/analyzer/test/src/summary/resynthesize_common.dart

Issue 2976263002: Resynthesize methods from Kernel. (Closed)
Patch Set: Created 3 years, 5 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: pkg/analyzer/test/src/summary/resynthesize_common.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_common.dart b/pkg/analyzer/test/src/summary/resynthesize_common.dart
index cb2c82c4d15a89e6b398bc603155ba2c4079342f..0ea874ed554a22abfd8f31cee986891805ff984a 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
@@ -10293,27 +10293,22 @@ abstract class D {
}
test_method_inferred_type_nonStatic_implicit_return() async {
- var library = await checkLibrary(
- 'class C extends D { f() => null; } abstract class D { int f(); }');
- if (isStrongMode) {
- checkElementText(library, r'''
+ var library = await checkLibrary('''
class C extends D {
- int f() {}
+ f() => null;
}
abstract class D {
int f();
}
''');
- } else {
- checkElementText(library, r'''
+ checkElementText(library, r'''
class C extends D {
- dynamic f() {}
+ int f() {}
}
abstract class D {
int f();
}
''');
- }
}
test_method_type_parameter() async {

Powered by Google App Engine
This is Rietveld 408576698