07a45e9d4c
The VM uses the collection and set literal transformations. The set literal transformation assumes that collections have already been transformed. This was not done correctly when translating a list (e.g., constructor initializers). Fixes https://github.com/dart-lang/sdk/issues/37027 Change-Id: If7a6bda55f8cf0efd761fd8932d3a9e2c60db19b Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/103134 Commit-Queue: Jens Johansen <jensj@google.com> Reviewed-by: Jens Johansen <jensj@google.com> Auto-Submit: Kevin Millikin <kmillikin@google.com>
10 lines
325 B
Dart
10 lines
325 B
Dart
// 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.
|
|
class C {
|
|
final Set<int> s;
|
|
C(List<int> ell) : s = {for (var e in ell) if (e.isOdd) 2 * e};
|
|
}
|
|
|
|
main() {}
|