blob: 56c1c1c496cf8990dbba2017aa91c626bd3307f1 [file] [log] [blame]
// Copyright (c) 2019, 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.
void nested_closures(Function([dynamic]) f) {
void inner(Object x) {
if (x is String) {
f();
/*String*/ x;
}
f(() {
if (x is String) {
f();
x;
}
x = 0;
});
if (x is String) {
f();
x;
}
}
}