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

Unified Diff: pkg/front_end/testcases/rasta/class_hierarchy.dart.direct.expect

Issue 2953503002: Only set types of conditional expressions in strong mode. (Closed)
Patch Set: Created 3 years, 6 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/rasta/class_hierarchy.dart.direct.expect
diff --git a/pkg/front_end/testcases/rasta/class_hierarchy.dart.direct.expect b/pkg/front_end/testcases/rasta/class_hierarchy.dart.direct.expect
index 0ecb52b9d40bc21420fb5623a16042839cf4c40f..f8bf7421b7db0c1dfe112c67293f5ae3b65b4e25 100644
--- a/pkg/front_end/testcases/rasta/class_hierarchy.dart.direct.expect
+++ b/pkg/front_end/testcases/rasta/class_hierarchy.dart.direct.expect
@@ -3,29 +3,24 @@ import self as self;
import "dart:core" as core;
class A extends core::Object {
- constructor •() → void
- : super core::Object::•()
- ;
+ constructor •() → self::A
+ : invalid-initializer;
}
class B extends core::Object {
- constructor •() → void
- : super core::Object::•()
- ;
+ constructor •() → self::B
+ : invalid-initializer;
}
class C extends core::Object {
- constructor •() → void
- : super core::Object::•()
- ;
+ constructor •() → dynamic
+ : invalid-initializer;
}
class D extends core::Object {
- static field dynamic _redirecting# = <dynamic>[self::D::•];
static factory •() → self::D
- let dynamic #redirecting_factory = "Missing" in invalid-expression;
+ invalid-statement;
}
-const field dynamic #errors = const <dynamic>["pkg/front_end/testcases/rasta/class_hierarchy.dart:9:7: Error: The type 'Missing' can't be mixed in.\nclass C = Object with Missing;\n ^", "pkg/front_end/testcases/rasta/class_hierarchy.dart: Error: The type 'Missing' can't be used as supertype.", "pkg/front_end/testcases/rasta/class_hierarchy.dart: Error: The type 'Missing' can't be used as supertype.", "pkg/front_end/testcases/rasta/class_hierarchy.dart: Error: The type 'Missing' can't be used as supertype.", "pkg/front_end/testcases/rasta/class_hierarchy.dart: Error: The type 'Missing' can't be used as supertype."]/* from null */;
static method main() → void {
new self::A::•();
new self::B::•();
new self::C::•();
- throw new core::NoSuchMethodError::_withType(null, #Missing, 32, <dynamic>[].toList(growable: false), <dynamic, dynamic>{}, null);
+ invalid-expression.call();
}

Powered by Google App Engine
This is Rietveld 408576698