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

Unified Diff: pkg/dev_compiler/test/codegen_test.dart

Issue 2801683004: Reify implicit casts for FutureOr (Closed)
Patch Set: Created 3 years, 8 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/dev_compiler/test/codegen_test.dart
diff --git a/pkg/dev_compiler/test/codegen_test.dart b/pkg/dev_compiler/test/codegen_test.dart
index 13f5e723683df1d1a15d9faa746e3c47ac05cf4f..34893b59c39abb5e02bf1b3fef17edbb8d0f15f3 100644
--- a/pkg/dev_compiler/test/codegen_test.dart
+++ b/pkg/dev_compiler/test/codegen_test.dart
@@ -156,9 +156,12 @@ main(List<String> arguments) {
compiler = new ModuleCompiler(analyzerOptions);
}
JSModuleFile module = null;
+ var exception = null;
try {
module = compiler.compile(unit, options);
- } catch (e) {}
+ } catch (e) {
+ exception = e;
+ }
bool expectedCompileTimeError =
contents.contains(': compile-time error\n');
@@ -167,7 +170,7 @@ main(List<String> arguments) {
if (module == null) {
expect(crashing, isTrue,
- reason: "test $name crashes during compilation.");
+ reason: "test $name crashes during compilation:\n $exception");
} else if (module.isValid) {
_writeModule(
path.join(codegenOutputDir, name),

Powered by Google App Engine
This is Rietveld 408576698