14 lines
239 B
TypeScript
Raw Normal View History

2019-06-05 23:15:39 +02:00
// Validates that skipped autorelease state is preserved accross calls and returns.
class Ref {}
function getRef(): Ref {
return new Ref();
}
function rereturnRef(): Ref {
return getRef();
}
/* __release( */ rereturnRef() /* ) */;