Files
sdk/pkg/front_end/testcases/inference/complex_predecrement.dart
T
Paul Berry 9ab1a30598 Store types in auxiliary nodes introduced by desugared indexed assignments.
Fixes #30582.

I'll address other kinds of assignments (assignment to a local
variable, static field/setter, or property) in follow up CLs.

Change-Id: I9055e951dc23a4aa1aa19489cf99a832319938c9
Reviewed-on: https://dart-review.googlesource.com/4184
Reviewed-by: Konstantin Shcheglov <scheglov@google.com>
2017-09-07 22:25:45 +00:00

12 lines
376 B
Dart

// Copyright (c) 2017, 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.
/*@testedFeatures=inference*/
library test;
main() {
var /*@type=List<int>*/ foo = /*@typeArgs=int*/ [1, 2, 3];
print(--foo /*@target=List::[]=*/ [0]);
}