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

Unified Diff: pkg/compiler/lib/src/warnings.dart

Issue 1078873003: Report compile-time error if using `this` implicitly in initializers (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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: pkg/compiler/lib/src/warnings.dart
diff --git a/pkg/compiler/lib/src/warnings.dart b/pkg/compiler/lib/src/warnings.dart
index 947141959a095a6b27787864827c1475335dfa7e..fed7def045ddd3db4f2cd6039f52bbc5bb568aff 100644
--- a/pkg/compiler/lib/src/warnings.dart
+++ b/pkg/compiler/lib/src/warnings.dart
@@ -155,6 +155,10 @@ class MessageKind {
static const MessageKind CANNOT_RESOLVE = const MessageKind(
"Cannot resolve '#{name}'.");
+ static const MessageKind CANNOT_RESOLVE_IN_INITIALIZER = const MessageKind(
+ "Cannot resolve '#{name}'. It would be implicitly looked up on this "
+ "instance, but instances are not available in initializers.");
Johnni Winther 2015/04/12 11:10:45 If you add [howToFix] and [examples] we will autom
Siggi Cherem (dart-lang) 2015/04/13 16:40:24 Nice, Done.
+
static const MessageKind CANNOT_RESOLVE_CONSTRUCTOR = const MessageKind(
"Cannot resolve constructor '#{constructorName}'.");

Powered by Google App Engine
This is Rietveld 408576698