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

Unified Diff: testcases/spec-mode/null_aware.baseline.txt

Issue 2465263002: Always store the type of a conditional expression on the node. (Closed)
Patch Set: Update test expectation Created 4 years, 1 month 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
« no previous file with comments | « testcases/input/null_aware.dart ('k') | testcases/strong-mode/null_aware.baseline.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testcases/spec-mode/null_aware.baseline.txt
diff --git a/testcases/spec-mode/null_aware.baseline.txt b/testcases/spec-mode/null_aware.baseline.txt
new file mode 100644
index 0000000000000000000000000000000000000000..9a60a6263ef7d525e8e2683185e96815c77a0250
--- /dev/null
+++ b/testcases/spec-mode/null_aware.baseline.txt
@@ -0,0 +1,22 @@
+library;
+import self as self;
+import "dart:core" as core;
+
+class Foo extends core::Object {
+ field core::int field = null;
+ static field core::int staticField = null;
+ constructor •() → void
+ : super core::Object::•()
+ ;
+}
+static method main() → dynamic {
+ self::Foo foo = new self::Foo::•();
+ let final dynamic #t1 = foo in #t1.==(null) ? null : #t1.field = 5;
+ self::Foo::staticField = 5;
+ let final dynamic #t2 = foo in #t2.field.==(null) ? #t2.field = 5 : null;
+ self::Foo::staticField.==(null) ? self::Foo::staticField = 5 : null;
+ let final dynamic #t3 = foo in #t3.==(null) ? null : #t3.field.==(null) ? #t3.field = 5 : null;
+ self::Foo::staticField.==(null) ? self::Foo::staticField = 5 : null;
+ core::int intValue = let final dynamic #t4 = foo.field in #t4.==(null) ? 6 : #t4;
+ core::num numValue = let final dynamic #t5 = foo.field in #t5.==(null) ? 4.5 : #t5;
+}
« no previous file with comments | « testcases/input/null_aware.dart ('k') | testcases/strong-mode/null_aware.baseline.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698