blob: 4c2ad37cbb47c4b01838e8ac68d635e3797a9d94 [file] [log] [blame]
// Copyright (c) 2013, 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 Foo<T> extends Bar<T> {
factory Foo() = Bar;
Foo.create() : super.create() { } // Super call required due to issue 5838.
}
class Bar<T
extends num /// 01: static type warning, dynamic type error
> {
factory Bar() {
return new Foo<T>.create();
}
Bar.create() { }
}
main() {
new Foo<String>();
}