Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1344)

Unified Diff: tests/language/src/FunctionTypeAlias2NegativeTest.dart

Issue 9186017: Fix crash in dartc when given cyclic type variable bounds. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Went back to prior verion of tests. Created 8 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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();
+}

Powered by Google App Engine
This is Rietveld 408576698