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

Unified Diff: pkg/front_end/testcases/rasta/issue_000044.dart.direct.expect

Issue 2949753002: Print static types of conditional expressions. (Closed)
Patch Set: Created 3 years, 6 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/rasta/issue_000044.dart.direct.expect
diff --git a/pkg/front_end/testcases/rasta/issue_000044.dart.direct.expect b/pkg/front_end/testcases/rasta/issue_000044.dart.direct.expect
index ed6b4f7eaab4a313d2cddfce1252bdbf04e8f9e1..d145bd9b38f589f249a807384996243768414c5b 100644
--- a/pkg/front_end/testcases/rasta/issue_000044.dart.direct.expect
+++ b/pkg/front_end/testcases/rasta/issue_000044.dart.direct.expect
@@ -3,23 +3,25 @@ import self as self;
import "dart:core" as core;
class C extends core::Object {
- const constructor constant() → dynamic
+ static field dynamic _redirecting# = <dynamic>[self::C::good];
+ const constructor constant() → void
: super core::Object::•()
;
- constructor missingFactoryKeyword() → dynamic
+ constructor missingFactoryKeyword() → void
: super core::Object::•()
- invalid-statement;
+ const core::_ConstantExpressionError::•()._throw(new core::_CompileTimeError::•("pkg/front_end/testcases/rasta/issue_000044.dart:14:31: Error: Can't return from a constructor.\n C.missingFactoryKeyword() = C.constant;\n ^"));
static factory good() → self::C
- invalid-statement;
+ let dynamic #redirecting_factory = self::C::constant in invalid-expression;
method notEvenAConstructor(dynamic a) → self::C
- invalid-statement;
+ return this.h;
}
-static method b() → dynamic
- invalid-statement;
+const field dynamic #errors = const <dynamic>["pkg/front_end/testcases/rasta/issue_000044.dart:7:8: Error: Expected a function body or '=>'.\na b(c) = d;\n ^", "pkg/front_end/testcases/rasta/issue_000044.dart:7:8: Error: Expected a function body or '=>'.\na b(c) = d;\n ^", "pkg/front_end/testcases/rasta/issue_000044.dart:14:29: Error: Expected a function body or '=>'.\n C.missingFactoryKeyword() = C.constant;\n ^", "pkg/front_end/testcases/rasta/issue_000044.dart:21:28: Error: Expected a function body or '=>'.\n C notEvenAConstructor(a) = h;\n ^"]/* from null */;
+static method b(dynamic c) → invalid-type
+ return throw new core::NoSuchMethodError::_withType(null, #d, 33, <dynamic>[].toList(growable: false), <dynamic, dynamic>{}, null);
static method main() → dynamic {
self::C c = null;
core::print(const self::C::constant());
- core::print(invalid-expression);
+ core::print(const core::_ConstantExpressionError::•()._throw(new core::_CompileTimeError::•("pkg/front_end/testcases/rasta/issue_000044.dart:27:15: Error: Not a const constructor.\n print(const C.missingFactoryKeyword());\n ^")));
core::print(const self::C::constant());
core::print(new self::C::constant().notEvenAConstructor(null));
}

Powered by Google App Engine
This is Rietveld 408576698