blob: f8bb9401bd14faa37de6abb7b6258f340ee7d4f6 [file] [log] [blame]
// Copyright (c) 2021, 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 int foo;
A(this.foo);
}
class B extends A {
B(super.foo) : super();
}
class C extends A {
C(super.foo) : super(42); // Error.
}
main() {}