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

Unified Diff: tests/language/indirect_const_null_test.dart

Issue 1243263003: Fix bad assert in constant evaluation. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 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
« no previous file with comments | « runtime/vm/parser.cc ('k') | tests/language/language.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/indirect_const_null_test.dart
diff --git a/tests/isolate/error_at_spawnuri_iso.dart b/tests/language/indirect_const_null_test.dart
similarity index 70%
copy from tests/isolate/error_at_spawnuri_iso.dart
copy to tests/language/indirect_const_null_test.dart
index b1650514fac895aea04bfe643a7fb182f0ce1ab3..51616143018a75078a0121f12937ddc0263ffc4a 100644
--- a/tests/isolate/error_at_spawnuri_iso.dart
+++ b/tests/language/indirect_const_null_test.dart
@@ -2,8 +2,9 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library error_at_spawnuri_iso;
+import "package:expect/expect.dart";
main() {
- throw new ArgumentError("fast error");
+ const NULL = 1 == 1 ? null : false;
+ Expect.isNull(NULL);
}
« no previous file with comments | « runtime/vm/parser.cc ('k') | tests/language/language.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698