Hi,
Someone reported an issue to me where a crash would occur when passing handles in a particular way. I am not sure why it's crashing. I narrowed it down to this minimal reproduction case:
class Foo {}
class Bar {
Foo@ m_foo;
Bar(Foo@ &in foo) {
@m_foo = foo; // Crash
}
}
void Main() {
Bar(Foo());
}
Obviously Foo@ &in
isn't very useful anyway, but a crash doesn't seem correct either ?