Index: tests/language/src/FunctionTypeAlias2NegativeTest.dart |
diff --git a/tests/language/src/FunctionTypeAlias2NegativeTest.dart b/tests/language/src/FunctionTypeAlias2NegativeTest.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2bd9c9c3f769ebf555821afd430d77ee5ae4b796 |
--- /dev/null |
+++ b/tests/language/src/FunctionTypeAlias2NegativeTest.dart |
@@ -0,0 +1,13 @@ |
+// 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. |
+ |
+ |
+typedef void funcType(int arg); |
+ |
+class A extends funcType { // illegal, funcType is not a class |
+} |
+ |
+main() { |
+ new A(); |
+} |