blob: e644e81819061675af21a85e10894950e3757b87 [file] [log] [blame]
// Copyright (c) 2014, 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";
class A {
final int i = f(); //# 01: compile-time error
final int j = 1;
const A();
}
int f() {
return 3;
}
main() {
const A().j;
}