573789f7f1
This ensures that it is invoked when performing constant evaluation in modular setting. Fixes https://github.com/dart-lang/sdk/issues/37794 Bug: 37794 Change-Id: I26c891044e030ac7702f02b2d4996984f9e898c6 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/112383 Commit-Queue: Vyacheslav Egorov <vegorov@google.com> Reviewed-by: Johnni Winther <johnniwinther@google.com>
17 lines
398 B
Dart
17 lines
398 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 A {
|
|
final String foo;
|
|
final List<String> list;
|
|
|
|
const A(
|
|
[this.foo = 'foo',
|
|
this.list = const [
|
|
'l',
|
|
...['i', 's'],
|
|
't'
|
|
]]);
|
|
}
|