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

Unified Diff: tests/language/function_type_alias7_test.dart

Issue 24073002: Emit error on default values in typedefs. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Add a test for named arguments. Created 7 years, 3 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
« no previous file with comments | « tests/co19/co19-dart2js.status ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/function_type_alias7_test.dart
diff --git a/tests/language/function_type_alias7_test.dart b/tests/language/function_type_alias7_test.dart
index 03c5e0316f5080b52cdf603657de81f114ef9d39..41712f24d4d885d997eed40bf8adbc4d04657076 100644
--- a/tests/language/function_type_alias7_test.dart
+++ b/tests/language/function_type_alias7_test.dart
@@ -7,6 +7,8 @@ typedef void funcType([int arg]);
typedef void badFuncType([int arg = 0]); /// 00: compile-time error
+typedef void badFuncType({int arg: 0}); /// 02: compile-time error
+
class A
extends funcType /// 01: compile-time error
{
@@ -14,4 +16,6 @@ class A
main() {
new A();
+ badFuncType f; /// 00: continued
+ badFuncType f; /// 02: continued
}
« no previous file with comments | « tests/co19/co19-dart2js.status ('k') | tests/language/language_dart2js.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698