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

Unified Diff: tests/language/null_to_string2_test.dart

Issue 10660007: Don't transform interceptors into dynamic invocations for null. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « lib/compiler/implementation/ssa/optimize.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/null_to_string2_test.dart
diff --git a/tests/language/null_to_string_test.dart b/tests/language/null_to_string2_test.dart
similarity index 75%
copy from tests/language/null_to_string_test.dart
copy to tests/language/null_to_string2_test.dart
index 19eef3ac41663dc732e9e534841ce6f6fe696e56..2a087b958b966e34a51701e515e0e56fa78cbe3b 100644
--- a/tests/language/null_to_string_test.dart
+++ b/tests/language/null_to_string2_test.dart
@@ -1,10 +1,14 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// 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.
// Test correct handling of NULL object in invocation and implicit closures.
+class A {}
+
+A foo() => null;
+
main() {
- var nullObj = null;
+ A nullObj = foo();
var x = nullObj.toString();
Expect.isTrue(x is String);
var y = nullObj.toString;
« no previous file with comments | « lib/compiler/implementation/ssa/optimize.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698