class foo {}
void bar(const foo &in) {}
void main() {
foo@ a = foo();
bar(true ? a : a);
}
This module crashes my application (citing an illegal instruction/opcode) when the main() function is called. AngelScript version 2.31.2. The crash can be prevented by changing a's type to either const foo@ or simply foo instead of a handle.