Index: lib/src/utils.dart |
diff --git a/lib/src/utils.dart b/lib/src/utils.dart |
index 12a5081f1c85e761625f4464b5c1d45e26560852..d9ccdac94ac96584535e041f3ee49e7f7db88319 100644 |
--- a/lib/src/utils.dart |
+++ b/lib/src/utils.dart |
@@ -387,8 +387,10 @@ Object getConstantField( |
return (f == null || f.type != expectedType) ? null : f.value; |
} |
-InterfaceType fillDynamicTypeArgs(InterfaceType t, TypeProvider types) => |
- t.substitute4(new List.filled(t.typeArguments.length, types.dynamicType)); |
+ParameterizedType fillDynamicTypeArgs(ParameterizedType t, TypeProvider types) { |
+ var dyn = new List.filled(t.typeArguments.length, types.dynamicType); |
+ return t.substitute2(dyn, t.typeArguments); |
+} |
/// Similar to [SimpleIdentifier] inGetterContext, inSetterContext, and |
/// inDeclarationContext, this method returns true if [node] is used in an |