The following script triggers an assertion failure in as_compiler.cpp on line 1156:
funcdef void Callback();
class Foo
{
void Bar()
{
}
}
void test()
{
Callback@ cb = Callback( Foo().Bar );
}
If assertions are disabled, this results in the temporary object leaking. Instancing the object before creating the delegate works around the issue.
Tested using the latest SVN library source.