6b3576f673
Also fixes a variety of miscellaneous accidental strong mode compile time or runtime check violations. Change-Id: Ia8a41ac291aff3689efae0b11a9c51a2db30ef33 Reviewed-on: https://dart-review.googlesource.com/34924 Reviewed-by: Bob Nystrom <rnystrom@google.com>
20 lines
399 B
Dart
20 lines
399 B
Dart
// Copyright (c) 2015, 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.
|
|
|
|
import "package:expect/expect.dart";
|
|
|
|
int count = 0;
|
|
|
|
void f([void f([Null x]) = f]) {
|
|
count++;
|
|
if (f != null) {
|
|
f(null);
|
|
}
|
|
}
|
|
|
|
main() {
|
|
f();
|
|
Expect.equals(2, count);
|
|
}
|