It seems that we cannot have a function pointer in a mixin.
Steps to reproduce:
1. Load this zscript.zs:
Code: Select all
version 4.14.2
class C
{
private Function<play void(void)> f; // OK
}
mixin class M
{
private Function<play void(void)> f; // not OK
}
class CM
{
mixin M;
}
Actual result: GZDoom hangs on load.
OS: Debian GNU/Linux 12 (bookworm), Linux 6.12.25+rpt-rpi-v8 on aarch64.
GZDoom: version g4.14.2.
If no class has this mixin, GZDoom loads correctly.