blob: 8ad9a9670bd452f5936a943b4d03cc8a3baf7f2c [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.
potentiallyMutatedInClosure(Object x) {
localFunction() {
x = 42;
}
if (x is String) {
localFunction();
x;
}
}
potentiallyMutatedInScope(Object x) {
if (x is String) {
/*String*/ x;
}
x = 42;
}