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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/warnings.dart

Issue 246963005: Change ErrorNode to masquerade as a null literal. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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/warnings.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/warnings.dart b/dart/sdk/lib/_internal/compiler/implementation/warnings.dart
index 2c361748cc64d9d3d7006f2c7b90fbe074186ad4..5a086c878026f4011f19755b74a596306daaba03 100644
--- a/dart/sdk/lib/_internal/compiler/implementation/warnings.dart
+++ b/dart/sdk/lib/_internal/compiler/implementation/warnings.dart
@@ -1497,7 +1497,7 @@ main() {}
class Class {
method();
}
-main() => new Class();
+main() => new Class().method();
ahe 2014/04/22 14:06:21 Gets rid of a warning.
"""]);
static const MessageKind ABSTRACT_GETTER = const MessageKind(
@@ -1722,7 +1722,7 @@ main() {
howToFix: DONT_KNOW_HOW_TO_FIX,
examples: const ["""
main() {
- print(ç);
+ String x = ç;
ahe 2014/04/22 14:06:21 This tests my change.
}
"""]);
« no previous file with comments | « dart/sdk/lib/_internal/compiler/implementation/tree/nodes.dart ('k') | dart/tests/compiler/dart2js/message_kind_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698