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

Unified Diff: pkg/compiler/lib/src/dart_types.dart

Issue 873133003: Fix type annotations that violate subtyping constraint on overriden methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 | pkg/compiler/lib/src/elements/modelx.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dart_types.dart
diff --git a/pkg/compiler/lib/src/dart_types.dart b/pkg/compiler/lib/src/dart_types.dart
index 5a60a7215535baa7b10e5df1e4e9e30bdcd35d57..713cbc1414d0e4859fe0fa6d08bb3a2e92da74eb 100644
--- a/pkg/compiler/lib/src/dart_types.dart
+++ b/pkg/compiler/lib/src/dart_types.dart
@@ -218,7 +218,7 @@ class TypeVariableType extends DartType {
DartType unalias(Compiler compiler) => this;
- DartType get typeVariableOccurrence => this;
+ TypeVariableType get typeVariableOccurrence => this;
void forEachTypeVariable(f(TypeVariableType variable)) {
f(this);
@@ -661,7 +661,7 @@ class FunctionType extends DartType {
DartType unalias(Compiler compiler) => this;
- DartType get typeVariableOccurrence {
+ TypeVariableType get typeVariableOccurrence {
TypeVariableType typeVariableType = returnType.typeVariableOccurrence;
if (typeVariableType != null) return typeVariableType;
« no previous file with comments | « no previous file | pkg/compiler/lib/src/elements/modelx.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698