blob: b063bb9e0a6bbe63f16f50d13c1e86cfdc40f9bc [file] [log] [blame] [edit]
// 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';
foo(x) => x;
check(y) {
Expect.equals('foo', y);
}
main() {
var x = foo('foo');
var y = foo(x);
x = 'constant';
// 'y' should not propagate here unless reference to 'x' is rewritten
check(y);
foo(x);
foo(x);
}