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

Unified Diff: pkg/compiler/lib/src/serialization/equivalence.dart

Issue 2121743002: Support serialization of generic methods. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Don't serialize code with compile time errors. Created 4 years, 5 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: pkg/compiler/lib/src/serialization/equivalence.dart
diff --git a/pkg/compiler/lib/src/serialization/equivalence.dart b/pkg/compiler/lib/src/serialization/equivalence.dart
index a7c08b5b09fa95dafee95b2d4cd5d46c57490695..ec5dd23cb1af077914bf240d268ebc1f8c5ce6d0 100644
--- a/pkg/compiler/lib/src/serialization/equivalence.dart
+++ b/pkg/compiler/lib/src/serialization/equivalence.dart
@@ -562,7 +562,9 @@ class TypeEquivalence implements DartTypeVisitor<bool, DartType> {
@override
bool visitTypeVariableType(TypeVariableType type, TypeVariableType other) {
return strategy.testElements(
- type, other, 'element', type.element, other.element);
+ type, other, 'element', type.element, other.element) &&
+ strategy.test(type, other, 'is MethodTypeVariableType',
+ type is MethodTypeVariableType, other is MethodTypeVariableType);
}
@override
« no previous file with comments | « pkg/compiler/lib/src/serialization/element_serialization.dart ('k') | pkg/compiler/lib/src/serialization/keys.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698