File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -349,9 +349,11 @@ public void WriteDataType(
349
349
return ;
350
350
}
351
351
352
- if ( typeDefinition . IsGenericParameter || typeDefinition . IsGenericInstance )
352
+ if ( typeDefinition . IsGenericParameter )
353
353
{
354
- writer . WriteByte ( ( byte ) nanoCLR_DataType . DATATYPE_GENERIC ) ;
354
+ // generic parameter should be declared as object
355
+ // the CLR is able to resolve to the correct type
356
+ writer . WriteByte ( ( byte ) nanoCLR_DataType . DATATYPE_OBJECT ) ;
355
357
return ;
356
358
}
357
359
Original file line number Diff line number Diff line change @@ -47,7 +47,6 @@ public enum nanoCLR_DataType : byte
47
47
DATATYPE_LAST_PRIMITIVE = DATATYPE_STRING,
48
48
49
49
DATATYPE_OBJECT , // Shortcut for System.Object
50
- DATATYPE_GENERIC = DATATYPE_OBJECT ,
51
50
DATATYPE_CLASS , // CLASS <class Token>
52
51
DATATYPE_VALUETYPE , // VALUETYPE <class Token>
53
52
DATATYPE_SZARRAY , // Shortcut for single dimension zero lower bound array SZARRAY <type>
You can’t perform that action at this time.
0 commit comments