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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/resolution/signatures.dart

Issue 246733004: Don't use fatal errors in message_kind_test.dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address review comments Created 6 years, 8 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: dart/sdk/lib/_internal/compiler/implementation/resolution/signatures.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/resolution/signatures.dart b/dart/sdk/lib/_internal/compiler/implementation/resolution/signatures.dart
index b9d9fd9bb4489c24bab317f7a75f7894ee8662b6..feedce14cdb9141feac2039bb2f9d91702ba9f9c 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/resolution/signatures.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/resolution/signatures.dart
@@ -199,7 +199,7 @@ class SignatureResolver extends MappingVisitor<ParameterElementX> {
}
Node defaultValue = node.arguments.head;
if (!defaultValuesAllowed) {
- error(defaultValue, defaultValuesError);
+ compiler.reportError(defaultValue, defaultValuesError);
}
// Visit the value. The compile time constant handler will
// make sure it's a compile time constant.

Powered by Google App Engine
This is Rietveld 408576698