Open maltaisn opened 3 weeks ago
I was just about to report this problem, as I ran into it as well.
I looked at the code and using subprograms or types in generic associations is simply not implemented. In fact generic associations are treated exactly like port associations at the moment.
On my side I just patched it by adding this line:
AnyEntKind::Type(_) => TypeEnt::from_any(self.ent).unwrap(),
right after:
Which is definitely wrong but at least there's no panic.
I just want to say that I'm on it, but I have decided against a quick fix because there currently is a lot of duplicate logic when analyzing interface lists (for example, the capabilities missing for entities is implemented for generic packages and generic subprograms) so I want to simplify the code a bit before rolling out the fix.
The following file:
Causes a panic:
I'm using v0.83.0.