Skip to content

Commit

Permalink
Merge pull request #772 from zooba/issue-697
Browse files Browse the repository at this point in the history
Fixes #697 Exception while editing IronPython code
  • Loading branch information
zooba committed Aug 21, 2015
2 parents a985506 + 20c37fe commit baac242
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Python/Product/IronPython/Interpreter/RemoteInterpreter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1055,9 +1055,10 @@ internal ObjectIdentityHandle TypeGroupMakeGenericType(ObjectIdentityHandle type
if (genType != null) {
Type[] genTypes = new Type[types.Length];
for (int i = 0; i < types.Length; i++) {
genTypes[i] = (Type)Unwrap(types[i]);
var o = Unwrap(types[i]);
genTypes[i] = o as Type ?? (PythonType)o;
}
return MakeHandle(genType.Type.MakeGenericType(genTypes));
return MakeHandle(DynamicHelpers.GetPythonTypeFromType(genType.Type.MakeGenericType(genTypes)));
}
return new ObjectIdentityHandle();
});
Expand Down

0 comments on commit baac242

Please sign in to comment.