This script:
class TestGC
{
TestGC @child;
~TestGC()
{
output( "Dest 1" );
child.Do();
output( "Dest 2" );
}
void Do(){}
}
void startGame()
{
TestGC @gc = TestGC();
@gc = null;
scene.RunGC();
output( "End" );
}
output:
Dest 1
End
Null pointer exception no show