| 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;
|
|
|