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

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

Issue 2976283002: Update expectations. (Closed)
Patch Set: Update compile.status. 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/inference/constructors_infer_from_arguments.dart.direct.expect
diff --git a/pkg/front_end/testcases/inference/constructors_infer_from_arguments.dart.direct.expect b/pkg/front_end/testcases/inference/constructors_infer_from_arguments.dart.direct.expect
new file mode 100644
index 0000000000000000000000000000000000000000..a50bc316ab900d40001a9be3f85455f5a3a2108b
--- /dev/null
+++ b/pkg/front_end/testcases/inference/constructors_infer_from_arguments.dart.direct.expect
@@ -0,0 +1,19 @@
+library test;
+import self as self;
+import "dart:core" as core;
+
+class C<T extends core::Object> extends core::Object {
+ field self::C::T t;
+ constructor •(self::C::T t) → void
+ : self::C::t = t, super core::Object::•()
+ ;
+}
+static method main() → dynamic {
+ dynamic x = new self::C::•<dynamic>(42);
+ core::num y;
+ self::C<core::int> c_int = new self::C::•<dynamic>(y);
+ self::C<core::num> c_num = new self::C::•<dynamic>(123);
+ self::C<core::num> c_num2 = let final dynamic #t1 = new self::C::•<dynamic>(456) in let final dynamic #t2 = #t1.t = 1.0 in #t1;
+ dynamic c_dynamic = new self::C::•<dynamic>(42);
+ x.t = "hello";
+}

Powered by Google App Engine
This is Rietveld 408576698