blob: c3935fb2ef4a6a6a3631de737826015edf6588f8 [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.
/**
* @assertion It is a compile error if the function type of k' is not a
* subtype of the type of k.
* @description Checks that a compile error is produced if factory constructor
* redirects to a constructor whose type is not a subtype of factory
* constructor function type. Checks the case when constructor parameter types
* are not assignable.
* @author ilya
*/
class F {
factory F(x,[String y]) = C;
// ^
// [analyzer] unspecified
// [cfe] unspecified
}
class C implements F {
C(x,[int? y]);
}
main() {
new F(123);
}