armoha / euddraft

System for pluginizing eudplib codes.
Other
29 stars 4 forks source link

Support nested `selftype` #129

Open armoha opened 2 months ago

armoha commented 2 months ago
object Foo {
    var next: selftype;  // okay
    var refVec: EUDVArray(10, selftype);  // not supported
    var refreshFn: EUDTypedFuncPtr(selftype, None);  // not supported
};
armoha commented 2 months ago

Currently selftype is specially handled for field and method parameter type: https://github.com/armoha/eudplib/blob/5fe6a24fdbb21203bd362f4d40d9571b512c9a7a/eudplib/core/eudstruct/structarr.py#L29-L31