Files
sdk/tests/modular/issue37794/main.dart
T
Vyacheslav Egorov 573789f7f1 [cfe] Insert default super initializer when outlining const constructor
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>
2019-08-09 11:26:59 +00:00

17 lines
510 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.
import 'package:expect/expect.dart';
import 'module2.dart';
import 'module1.dart';
main() {
const x = B();
const y = A();
Expect.equals('foo', x.foo);
Expect.listEquals(['l', 'i', 's', 't'], x.list);
Expect.equals('foo', y.foo);
Expect.listEquals(['l', 'i', 's', 't'], y.list);
}