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

Unified Diff: compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java

Issue 10534082: Issue 3449. Enable default values for parameters in abstract and interface methods (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Rollback changes from other CL Created 8 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
« no previous file with comments | « compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java ('k') | tests/co19/co19-compiler.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
diff --git a/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java b/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
index 37b460a30522ce7c0a6de7a10cecca0c13e79242..dd1235ebcd4014ac45bc1cbef793c69d5f374158 100644
--- a/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
+++ b/compiler/javatests/com/google/dart/compiler/parser/NegativeParserTest.java
@@ -149,18 +149,6 @@ public class NegativeParserTest extends CompilerTestCase {
assertEquals("foo", ((DartIdentifier) factory.getName()).getName());
}
- public void test_defaultParameterValue_inInterfaceMethod() {
- parseExpectErrors(
- "interface A { f(int a, [int b = 12345]); }",
- errEx(ParserErrorCode.DEFAULT_VALUE_CAN_NOT_BE_SPECIFIED_IN_INTERFACE, 1, 33, 5));
- }
-
- public void test_defaultParameterValue_inAbstractMethod() {
- parseExpectErrors(
- "class A { abstract f(int a, [int b = 12345, int c]); }",
- errEx(ParserErrorCode.DEFAULT_VALUE_CAN_NOT_BE_SPECIFIED_IN_ABSTRACT, 1, 38, 5));
- }
-
public void test_defaultParameterValue_inClosureTypedef() {
parseExpectErrors(
"typedef void f(int a, [int b = 12345, inc c]);",
« no previous file with comments | « compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java ('k') | tests/co19/co19-compiler.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698