Currently, in ObjectIR we have no way of making generic classes besides prefixing their types with Object.
infact, Object doesn't even exist as a concept inside ObjectIR at all despite the name clearly stating it does.
The idea for this issue is to provide a basis for constructing a way for Generics to be constructed.
for example:
module ListNode
class ListNode<T>
{
public field contents: T[]
method .cctor(val: T[])
{
ldarg val
stfld contents
}
}
this is one such idea on how a custom generic could be created.
Currently, in ObjectIR we have no way of making generic classes besides prefixing their types with Object.
infact, Object doesn't even exist as a concept inside ObjectIR at all despite the name clearly stating it does.
The idea for this issue is to provide a basis for constructing a way for Generics to be constructed.
for example:
this is one such idea on how a custom generic could be created.