blob: 6601cfa29528887018a41fac7df1468c016dc5a8 [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.
// The list of type parameters in the default factory clause can be omitted.
interface Interface<T> default Factory {
Interface();
Interface.withArg(T value);
}
class Factory<T> {
factory Interface() {
return null;
}
factory Interface.withArg(value) {
return null;
}
}
main() {
new Interface<int>();
new Interface<int>.withArg(4);
}