Index: tests/standalone/regress_29350_test.dart |
diff --git a/tests/standalone/regress_29350_test.dart b/tests/standalone/regress_29350_test.dart |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fe3b534832147ace0ed5926afa65b7dbfa868552 |
--- /dev/null |
+++ b/tests/standalone/regress_29350_test.dart |
@@ -0,0 +1,14 @@ |
+/* |
+ * Copyright (c) 2017, 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. |
+ */ |
+ |
+// 'covariant' when used incorrectly should report an error and not crash |
+// the VM. |
+ |
+typedef bool Test(covariant num arg); //# none: compile-time error |
+ |
+void main() { |
+ Test t = (int value) => false; |
+} |