dart-sdk/tests/language/extend_type_parameter2_negative_test.dart
2012-12-03 20:51:15 +00:00

12 lines
327 B
Dart

// 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.
// Extending a type parameter is not allowed.
abstract class A<T> extends T { }
main() {
A a = new A();
}