blob: 7c00b3bb0a44a62f9a8480812f49ec04db549d9c [file] [log] [blame]
// Copyright (c) 2017, 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 Base {
final String name;
const Base(this.name);
}
class C extends Base {
const C(String s)
// Call super constructor with wrong argument count.
: super();
// ^
// [cfe] Too few positional arguments: 1 required, 0 given.
// ^
// [analyzer] COMPILE_TIME_ERROR.NOT_ENOUGH_POSITIONAL_ARGUMENTS
}
main() {
const C("str");
}