return TypeSimple.createByRef(typ)
# III. Decode non-primitive type
+ origModuleIndex = self._moduleIndex
+
if (typ == CorTypeInfo.CorElementType.ELEMENT_TYPE_TYPEDBYREF): # pylint: disable=no-else-raise
# TODO: support this?
raise UnsupportedError()
numArgs = self._decodeValue()
args = []
for i in range(numArgs): # pylint: disable=unused-variable
- args.append(self._decodeSignatureForTypeHandle(moduleIndex))
+ args.append(self._decodeSignatureForTypeHandle(origModuleIndex))
return TypeGeneric.createByRef(typ, TypeToken.createByRef(nextTyp, moduleIndex, typeToken), args)
elif (typ in (CorTypeInfo.CorElementType.ELEMENT_TYPE_CLASS,
cArgs = self._decodeValue()
retAndArgs = []
for i in range(cArgs):
- retAndArgs.append(self._decodeSignatureForTypeHandle(moduleIndex))
+ retAndArgs.append(self._decodeSignatureForTypeHandle(origModuleIndex))
return TypeFNPtr.createByRef(typ, callConv, retAndArgs)
elif (typ == CorTypeInfo.CorElementType.ELEMENT_TYPE_INTERNAL): # pylint: disable=no-else-raise
# TODO: support this?