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

Unified Diff: pkg/front_end/testcases/inference/type_cast.dart.strong.expect

Issue 2862043002: Infer AsExpression types. (Closed)
Patch Set: Created 3 years, 7 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/inference/type_cast.dart.strong.expect
diff --git a/pkg/front_end/testcases/inference/type_cast.dart.strong.expect b/pkg/front_end/testcases/inference/type_cast.dart.strong.expect
new file mode 100644
index 0000000000000000000000000000000000000000..8e8b39bfa22d11c924f0a6987ee9bdd1d24fe766
--- /dev/null
+++ b/pkg/front_end/testcases/inference/type_cast.dart.strong.expect
@@ -0,0 +1,20 @@
+library test;
+import self as self;
+import "dart:core" as core;
+
+class A<T extends core::Object> extends core::Object {
+ constructor •() → void
+ : super core::Object::•()
+ ;
+}
+class B<T extends core::Object> extends self::A<self::B::T> {
+ constructor •() → void
+ : super self::A::•()
+ ;
+ method foo() → dynamic {}
+}
+static field self::A<core::num> a = new self::B::•<core::int>();
+static field self::B<core::int> b = self::a as self::B<core::int>;
+static method main() → dynamic {
+ self::b.foo();
+}

Powered by Google App Engine
This is Rietveld 408576698