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

Unified Diff: sdk/lib/_internal/compiler/implementation/resolution/members.dart

Issue 12210013: Implement subtype for type variables. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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: sdk/lib/_internal/compiler/implementation/resolution/members.dart
diff --git a/sdk/lib/_internal/compiler/implementation/resolution/members.dart b/sdk/lib/_internal/compiler/implementation/resolution/members.dart
index 8bb3b30a579632e5d9babbf395dafc6f3cc3e2d1..df090e16ea7e43edc8d912f169268fb968ecb9c4 100644
--- a/sdk/lib/_internal/compiler/implementation/resolution/members.dart
+++ b/sdk/lib/_internal/compiler/implementation/resolution/members.dart
@@ -2785,13 +2785,13 @@ class TypeDefinitionVisitor extends CommonResolverVisitor<DartType> {
warning(node, MessageKind.CYCLIC_TYPE_VARIABLE,
{'typeVariableName': variableElement.name});
} else if (boundType != null) {
- variableElement.bound = boundType;
+ variableElement.upperBound = boundType;
} else {
// TODO(johnniwinther): Should be an erroneous type.
- variableElement.bound = compiler.objectClass.computeType(compiler);
+ variableElement.upperBound = compiler.objectClass.computeType(compiler);
}
} else {
- variableElement.bound = compiler.objectClass.computeType(compiler);
+ variableElement.upperBound = compiler.objectClass.computeType(compiler);
}
nodeLink = nodeLink.tail;
typeLink = typeLink.tail;

Powered by Google App Engine
This is Rietveld 408576698