blob: 37d31094ed594f0cee3f6e8337a8361ccfa3c4f3 [file] [log] [blame]
// Copyright (c) 2011, 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.
// Redirection constructors must not initialize any fields.
class A {
var x;
A(this.x) {}
A.named() : this(3), x = 5 {}
}
class ConstructorRedirect3NegativeTest {
static testMain() {
new A.named();
}
}
main() {
ConstructorRedirect3NegativeTest.testMain();
}