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

Unified Diff: pkg/analyzer/lib/src/generated/type_system.dart

Issue 1499533002: Fix some inference corner case crashes (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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 | « pkg/analyzer/lib/src/generated/static_type_analyzer.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/generated/type_system.dart
diff --git a/pkg/analyzer/lib/src/generated/type_system.dart b/pkg/analyzer/lib/src/generated/type_system.dart
index cce26259153fcfdaf5b134747677a30b7ba39996..dc3bc7ec384d555346bfff8ef9db29bc6cf417c7 100644
--- a/pkg/analyzer/lib/src/generated/type_system.dart
+++ b/pkg/analyzer/lib/src/generated/type_system.dart
@@ -50,11 +50,11 @@ class StrongTypeSystemImpl implements TypeSystem {
FunctionTypeImpl fnType,
List<DartType> correspondingParameterTypes,
List<DartType> argumentTypes) {
- ExecutableElement element = fnType.element;
+ TypeParameterizedElement element = fnType.element;
if (element.typeParameters.isEmpty) {
return fnType;
}
-
+ assert(correspondingParameterTypes.length == argumentTypes.length);
int numParams = element.typeParameters.length;
List<DartType> fnTypeParams = fnType.typeArguments;
fnTypeParams = fnTypeParams.sublist(0, numParams);
« no previous file with comments | « pkg/analyzer/lib/src/generated/static_type_analyzer.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698