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

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

Issue 11879039: Fix error message for library name mismatch. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Unittest added. Created 7 years, 11 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
« no previous file with comments | « no previous file | tests/compiler/dart2js/mock_compiler.dart » ('j') | tests/compiler/dart2js/part_of_test.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 55f2be9eba0ef230fb1ef507335e2bf9c5c8457b..8decda02b91cdabcbe3bd66ab639ce3c7f8f21e4 100644
--- a/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
+++ b/sdk/lib/_internal/compiler/implementation/elements/modelx.dart
@@ -507,8 +507,8 @@ class CompilationUnitElementX extends ElementX
partTag = tag;
LibraryName libraryTag = getLibrary().libraryTag;
if (libraryTag != null) {
- String expectedName = tag.name.toString();
- String actualName = libraryTag.name.toString();
+ String actualName = tag.name.toString();
+ String expectedName = libraryTag.name.toString();
if (expectedName != actualName) {
listener.reportMessage(
listener.spanFromSpannable(tag.name),
« no previous file with comments | « no previous file | tests/compiler/dart2js/mock_compiler.dart » ('j') | tests/compiler/dart2js/part_of_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698