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

Unified Diff: lib/compiler/implementation/js_backend/namer.dart

Issue 10996039: Bring type variables into static scope, but produce compile-time error when they are used. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Produce warning and dynamic type error instead of compile-time error. Created 8 years, 2 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: lib/compiler/implementation/js_backend/namer.dart
diff --git a/lib/compiler/implementation/js_backend/namer.dart b/lib/compiler/implementation/js_backend/namer.dart
index a5ec408306d4d29ef453bb18f8a2d632f737bd28..dd8ab2e9a8808f6145583cecb7aee0be57adea28 100644
--- a/lib/compiler/implementation/js_backend/namer.dart
+++ b/lib/compiler/implementation/js_backend/namer.dart
@@ -270,7 +270,8 @@ class Namer {
kind === ElementKind.GETTER ||
kind === ElementKind.SETTER ||
kind === ElementKind.TYPEDEF ||
- kind === ElementKind.LIBRARY) {
+ kind === ElementKind.LIBRARY ||
+ kind === ElementKind.MALFORMED_TYPE) {
String result = getFreshGlobalName(guess);
globals[element] = result;
return result;

Powered by Google App Engine
This is Rietveld 408576698