This commit is contained in:
dcode
2019-05-20 23:10:06 +02:00
parent f73d807d5a
commit 3e480d9423
108 changed files with 123377 additions and 48800 deletions

View File

@ -0,0 +1,26 @@
{
// Normal assignment will retain and release.
let a = /* __retain( */ "" /* ) */;
// __release(a)
}
function getRef(): string {
return /* __retain( */ "" /* ) */;
}
{
// Assignment of a return value picks up its skipped autorelease
let b = getRef();
// __release(b);
}
class Ref {}
{
// Assignment of an instantiation picks up its skipped autorelease
let c = new Ref();
// __release(c);
}