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

Unified Diff: pkg/front_end/testcases/type_variable_as_super.dart.direct.expect

Issue 2981783002: Set 'isSyntheticDefault' for default constructors. (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/front_end/testcases/type_variable_as_super.dart.direct.expect
diff --git a/pkg/front_end/testcases/type_variable_as_super.dart.direct.expect b/pkg/front_end/testcases/type_variable_as_super.dart.direct.expect
index f896d53309187929cd7e0c3902c2dd8e6b34e56d..fd84fc720301e722ed567200d18f3f2f35252975 100644
--- a/pkg/front_end/testcases/type_variable_as_super.dart.direct.expect
+++ b/pkg/front_end/testcases/type_variable_as_super.dart.direct.expect
@@ -3,7 +3,7 @@ import self as self;
import "dart:core" as core;
abstract class A<T extends core::Object> extends core::Object {
- constructor •() → void
+ default constructor •() → void
: super core::Object::•()
;
}
@@ -13,12 +13,13 @@ abstract class B<T extends core::Object> extends core::Object {
;
}
class C<T extends core::Object> extends core::Object {
- constructor •() → void
+ default constructor •() → void
: super core::Object::•()
;
}
+const field dynamic #errors = const <dynamic>["Error: The type variable 'T' can't be used as supertype.", "Error: The type variable 'T' can't be used as supertype.", "Error: The type variable 'T' can't be used as supertype."]/* from null */;
static method main() → dynamic {
- throw new core::NoSuchMethodError::•(null, #A, <dynamic>[], <dynamic, dynamic>{}, null);
- throw new core::NoSuchMethodError::•(null, #B, <dynamic>[], <dynamic, dynamic>{}, null);
+ throw new core::AbstractClassInstantiationError::•("A");
+ throw new core::AbstractClassInstantiationError::•("B");
new self::C::•<dynamic>();
}

Powered by Google App Engine
This is Rietveld 408576698