blob: 10f1817a6cebd90fdc5149e37edc4c9fba850360 [file] [log] [blame]
// Copyright (c) 2012, 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.
// @dart = 2.9
// Extending a type parameter is not allowed.
abstract class A<T> extends T {} // //# 00: compile-time error
class A<T> extends T {} // //# 01: compile-time error
main() {
A a = new A(); // //# 00: compile-time error
A a = new A(); // //# 01: continued
}