| Index: tests/language/issue13179_test.dart
|
| diff --git a/tests/isolate/issue_21398_child_isolate1.dart b/tests/language/issue13179_test.dart
|
| similarity index 60%
|
| copy from tests/isolate/issue_21398_child_isolate1.dart
|
| copy to tests/language/issue13179_test.dart
|
| index 1a720bd499c03102608f99aec1bc8e6aaf631101..0439ceab895f5925234763b90cb323007bc19b14 100644
|
| --- a/tests/isolate/issue_21398_child_isolate1.dart
|
| +++ b/tests/language/issue13179_test.dart
|
| @@ -2,11 +2,18 @@
|
| // 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.
|
|
|
| -import 'dart:isolate';
|
| import "package:expect/expect.dart";
|
|
|
| -main(List<String> args, message) {
|
| - var sendPort1 = args[0] as SendPort;
|
| - var sendPort2 = args[1] as SendPort;
|
| - sendPort2.send(sendPort1);
|
| +int count = 0;
|
| +
|
| +void f([void f([x]) = f]) {
|
| + count++;
|
| + if (f != null) {
|
| + f(null);
|
| + }
|
| +}
|
| +
|
| +main() {
|
| + f();
|
| + Expect.equals(2, count);
|
| }
|
|
|