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

Unified Diff: compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java

Issue 9015002: Check for abstract method with body and top-level abstract elements, issue 871 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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: compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
diff --git a/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java b/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
index 7207226f74d1d915453e71880f93b6196d35fad8..300c25e59819b85a6970aa871632752b4884bb85 100644
--- a/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
+++ b/compiler/java/com/google/dart/compiler/parser/ParserErrorCode.java
@@ -12,6 +12,8 @@ import com.google.dart.compiler.SubSystem;
*/
public enum ParserErrorCode implements ErrorCode {
ABSTRACT_MEMBER_IN_INTERFACE("Abstract members are not allowed in interfaces"),
+ ABSTRACT_METHOD_WITH_BODY("Abstract method can not have a body"),
+ ABSTRACT_TOP_LEVEL_ELEMENT("Only class can be abstract top-level element"),
CATCH_OR_FINALLY_EXPECTED("catch or finally clause expected."),
DEFAULT_VALUE_CAN_NOT_BE_SPECIFIED_IN_ABSTRACT(
"Default values can not be specified in abstract method"),

Powered by Google App Engine
This is Rietveld 408576698