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,14 @@
function getRef(): string {
return "";
}
// Assignment of a return value picks up its delayed release state and skips
// one set of retain/release.
var a: string = getRef();
var b = getRef(); // same, but inferred
// Unleak
a = /* __retainRelease( */ changetype<string>(0) /* , a) */;
b = /* __retainRelease( */ changetype<string>(0) /* , a) */;