| Index: tests/language/null_is2_test.dart
|
| diff --git a/tests/language/call_this_test.dart b/tests/language/null_is2_test.dart
|
| similarity index 55%
|
| copy from tests/language/call_this_test.dart
|
| copy to tests/language/null_is2_test.dart
|
| index 55e7ccd509607ff939e45c328a23ddc0ab023023..1edf139a7866acec23e20ff6e1b857a91890d858 100644
|
| --- a/tests/language/call_this_test.dart
|
| +++ b/tests/language/null_is2_test.dart
|
| @@ -2,17 +2,15 @@
|
| // 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 that dart2js treats [:this():] as a closure send.
|
| -
|
| import "package:expect/expect.dart";
|
|
|
| -class A {
|
| - call() => 42;
|
| - test1() => this();
|
| - test2() => (this)();
|
| +class Test<T> {
|
| + foo(a) => a is T;
|
| }
|
|
|
| main() {
|
| - Expect.equals(42, (new A()).test1());
|
| - Expect.equals(42, (new A()).test2());
|
| + Expect.isTrue(new Test<Object>().foo(null));
|
| + Expect.isTrue(new Test<dynamic>().foo(null));
|
| + Expect.isFalse(new Test<int>().foo(null));
|
| + Expect.isFalse(null is List<Object>);
|
| }
|
|
|