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

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

Issue 2862043002: Infer AsExpression types. (Closed)
Patch Set: Fixes for review comments. 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.direct.expect
diff --git a/pkg/front_end/testcases/inference/type_cast.dart.direct.expect b/pkg/front_end/testcases/inference/type_cast.dart.direct.expect
new file mode 100644
index 0000000000000000000000000000000000000000..f38f4286feff0c0525913bfd5c24a8a86adea98a
--- /dev/null
+++ b/pkg/front_end/testcases/inference/type_cast.dart.direct.expect
@@ -0,0 +1,21 @@
+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 dynamic b = self::a as self::B<core::int>;
+static method main() → dynamic {
+ self::A<core::num> a = new self::B::•<core::int>();
+ dynamic b = a as self::B<core::int>;
+}
« no previous file with comments | « pkg/front_end/testcases/inference/type_cast.dart ('k') | pkg/front_end/testcases/inference/type_cast.dart.outline.expect » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698