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

Unified Diff: sdk/lib/_internal/compiler/implementation/elements/modelx.dart

Issue 54983007: Make test of malformed types a dynamic type error. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 7 years, 1 month 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: sdk/lib/_internal/compiler/implementation/elements/modelx.dart
diff --git a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
index 56a35e9bc2e87b07d7ae1916a9e52fb591952850..c9a420c963f053ed10d219a6ca72eabd57e5b798 100644
--- a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
+++ b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
@@ -345,9 +345,9 @@ class ErroneousElementX extends ElementX implements ErroneousElement {
computeTargetType(Compiler compiler, InterfaceType newType) => unsupported();
- String toString() {
- return '<$name: ${messageKind.message(messageArguments)}>';
- }
+ String get message => '${messageKind.message(messageArguments)}';
+
+ String toString() => '<$name: $message>';
}
/// A message attached to a [WarnOnUseElementX].

Powered by Google App Engine
This is Rietveld 408576698