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

Unified Diff: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java

Issue 18117002: Report FUNCTION_TYPED_PARAMETER_VAR (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 6 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: editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java
diff --git a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java
index 6d62cab22780215bd01ac81b32731f8a4f4318f4..ff881444bd7ca2481d069c814871e10937489f39 100644
--- a/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java
+++ b/editor/tools/plugins/com.google.dart.engine_test/src/com/google/dart/engine/parser/ErrorParserTest.java
@@ -633,6 +633,18 @@ public class ErrorParserTest extends ParserTestCase {
parseCompilationUnit("final typedef F();", ParserErrorCode.FINAL_TYPEDEF);
}
+ public void test_functionTypedParameter_const() throws Exception {
+ parseCompilationUnit("void f(const x()) {}", ParserErrorCode.FUNCTION_TYPED_PARAMETER_VAR);
+ }
+
+ public void test_functionTypedParameter_final() throws Exception {
+ parseCompilationUnit("void f(final x()) {}", ParserErrorCode.FUNCTION_TYPED_PARAMETER_VAR);
+ }
+
+ public void test_functionTypedParameter_var() throws Exception {
+ parseCompilationUnit("void f(var x()) {}", ParserErrorCode.FUNCTION_TYPED_PARAMETER_VAR);
+ }
+
public void test_getterWithParameters() throws Exception {
parse(
"parseClassMember",

Powered by Google App Engine
This is Rietveld 408576698