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

Unified Diff: tests/language/f_bounded_quantification5_test.dart

Issue 897013003: dart2js: add common names to mangledGlobalNames in new emitter. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments. Created 5 years, 10 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: tests/language/f_bounded_quantification5_test.dart
diff --git a/tests/language/f_bounded_quantification5_test.dart b/tests/language/f_bounded_quantification5_test.dart
index b45cb2dc5dc43e21516cd981d32548b4a8ff62bb..b70f0613b51b583c56312f2204fc6ddffacb9019 100644
--- a/tests/language/f_bounded_quantification5_test.dart
+++ b/tests/language/f_bounded_quantification5_test.dart
@@ -25,6 +25,9 @@ isCheckedMode() {
main() {
bool got_type_error = false;
try {
+ // Getting "int" when calling toString() on the int type is not required.
+ // However, we want to keep the original names for the most common core
+ // types so we make sure to handle these specifically in the compiler.
Expect.equals("A<B<int>>", new A<B<int>>().runtimeType.toString());
} on TypeError catch (error) {
got_type_error = true;

Powered by Google App Engine
This is Rietveld 408576698