Skip to content

Commit b01a21c

Browse files
committed
Fix processing TyepSpec in ldtoken
- Replicates #160 with the current approach. - Addresses nanoframework/Home#1164.
1 parent fd6b2ab commit b01a21c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

MetadataProcessor.Shared/Tables/nanoTypeSpecificationsTable.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ private void FillTypeSpecsFromTypes()
190190
{
191191
foreach (var m in t.Methods.Where(i => i.HasBody))
192192
{
193-
foreach (var i in m.Body.Instructions.Where(i => (i.Operand is GenericParameter) || (i.OpCode.OperandType is OperandType.InlineType && ((TypeReference)i.Operand).IsArray)))
193+
foreach (var i in m.Body.Instructions.Where(i => (i.Operand is GenericParameter) || (i.OpCode.OperandType is OperandType.InlineType && ((TypeReference)i.Operand).IsArray) || (i.OpCode.OperandType is OperandType.InlineTok)))
194194
{
195195
// get index of signature for the TypeSpecification
196196
ushort signatureId;

0 commit comments

Comments
 (0)