blob: 50fbd9f132d35bdb781b8654214962fa222d220b [file] [log] [blame]
// Copyright (c) 2018, 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.
// @dart=2.9
// This test checks that new/const insertion works for some simple cases.
class A {
final int x;
const A(this.x);
main() {
int foo = 42;
A(5 + 5);
A(5 + foo);