<div dir="ltr"><div>There are no restrictions on the type of the first argument to withExtendedLiftetime, even though it makes sense only for reference types.</div><div><br></div><div>So both the below variants will compile, and my question is if the first one will work as expected (extending the lifetime of both a and b) or if the second variant must be used instead.</div><div><br></div><div>1:</div><div>withExtendedLifetime((a, b)) {<br></div><div>    ...</div><div>}</div><div><br></div><div>2:</div><div>withExtendedLifetime(a) {<br></div><div>    withExtendedLifetime(b) {</div><div>        ...</div><div>    }</div><div>}</div><div><br></div><div>/Jens</div><div><br></div></div>