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

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

Issue 1151163004: Implementation of null-aware operators. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 7 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 8977b5d9220dfd3a363dbf728a4cec8f805dcfaa..a168c31b1a8895f00ca7afc674959a702a3c1c7d 100644
--- a/pkg/compiler/lib/src/warnings.dart
+++ b/pkg/compiler/lib/src/warnings.dart
@@ -1175,6 +1175,10 @@ main() => new C();"""]);
static const MessageKind ASSIGNING_TYPE = const MessageKind(
"Cannot assign a value to a type.");
+ static const MessageKind IF_NULL_ASSIGNING_TYPE = const MessageKind(
+ "Cannot assign a value to a type. Note that types are never null, "
+ "so this ??= assignment has no effect.");
Johnni Winther 2015/05/22 12:39:49 Maybe add a [howToFix] and an example. (We test th
Siggi Cherem (dart-lang) 2015/05/22 19:49:54 Done.
+
static const MessageKind VOID_NOT_ALLOWED = const MessageKind(
"Type 'void' can't be used here because it isn't a return type.",
howToFix: "Try removing 'void' keyword or replace it with 'var', 'final',"

Powered by Google App Engine
This is Rietveld 408576698