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

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

Issue 2914113002: Add some top level type inference rules for property gets. (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/property_get_toplevel.dart.direct.expect
diff --git a/pkg/front_end/testcases/inference/property_get_toplevel.dart.direct.expect b/pkg/front_end/testcases/inference/property_get_toplevel.dart.direct.expect
new file mode 100644
index 0000000000000000000000000000000000000000..403c6deb18cdb621902fe5b14ab0899058bd4bd7
--- /dev/null
+++ b/pkg/front_end/testcases/inference/property_get_toplevel.dart.direct.expect
@@ -0,0 +1,22 @@
+library test;
+import self as self;
+import "dart:core" as core;
+
+class C extends core::Object {
+ field core::int field = 0;
+ constructor •() → void
+ : super core::Object::•()
+ ;
+ get getter() → core::int
+ return 0;
+ method function() → core::int
+ return 0;
+}
+static field self::C c = new self::C::•();
+static field dynamic field_ref = self::c.field;
+static field dynamic getter_ref = self::c.getter;
+static field dynamic function_ref = self::c.function;
+static field dynamic field_ref_list = <dynamic>[self::c.field];
+static field dynamic getter_ref_list = <dynamic>[self::c.getter];
+static field dynamic function_ref_list = <dynamic>[self::c.function];
+static method main() → dynamic {}

Powered by Google App Engine
This is Rietveld 408576698