9ab1a30598
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>
12 lines
376 B
Dart
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]);
|
|
}
|