<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jun 16, 2016, at 11:30 PM, William Shipley &lt;<a href="mailto:wjs@mac.com" class="">wjs@mac.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><blockquote type="cite" class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class=""><div class="" style="margin: 0px; font-size: 9px; line-height: normal; font-family: Menlo; color: rgb(79, 129, 135);"><span class="" style="font-variant-ligatures: no-common-ligatures;"><span class="Apple-tab-span" style="white-space: pre;">        </span></span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">private</span><span class="" style="font-variant-ligatures: no-common-ligatures;">&nbsp;</span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">lazy</span><span class="" style="font-variant-ligatures: no-common-ligatures;">&nbsp;</span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">var</span><span class="" style="font-variant-ligatures: no-common-ligatures;">&nbsp;floorGeometryAndMaterialBacking:&nbsp;</span><span class="" style="font-variant-ligatures: no-common-ligatures;">FloorPlatonicGeometryAndMaterial</span><span class="" style="font-variant-ligatures: no-common-ligatures;">? =&nbsp;</span></div><div class="" style="margin: 0px; font-size: 9px; line-height: normal; font-family: Menlo; color: rgb(79, 129, 135);"><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);"><span class="Apple-tab-span" style="white-space: pre;">                                </span>try</span><span class="" style="font-variant-ligatures: no-common-ligatures;">!&nbsp;</span><span class="" style="font-variant-ligatures: no-common-ligatures;">FloorPlatonicGeometryAndMaterial</span><span class="" style="font-variant-ligatures: no-common-ligatures;">(modelDirectory:&nbsp;</span><span class="" style="font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);">self</span><span class="" style="font-variant-ligatures: no-common-ligatures;">.</span><span class="" style="font-variant-ligatures: no-common-ligatures;">modelDirectoryURL</span><span class="" style="font-variant-ligatures: no-common-ligatures;">)</span></div></div></div></blockquote><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class=""><div class="" style="margin: 0px; font-size: 9px; line-height: normal; font-family: Menlo; color: rgb(79, 129, 135);"><span class="" style="font-variant-ligatures: no-common-ligatures;"><br class=""></span></div><div class="" style="margin: 0px; line-height: normal;"><font face="HelveticaNeue" class="">Oddly, the&nbsp;“self.” made all the difference in getting it to compile. I’m not clear why in this case, I guess there’s some part of the language I didn’t learn&nbsp;right. Thanks.</font></div></div></div></div></div></div></blockquote><br class=""></div><div>Yes, another headache that would be solved by the explicit self!</div><div><br class=""></div><div>The issue here is often (in my experience) that if the closure/one-liner defining the default lazy value contains an error, the compiler won't emit an error about the actual cause but will compain very generically it can't assign.</div><div><br class=""></div><div>You might consider reporting it on <a href="http://bugs.swift.org" class="">bugs.swift.org</a>.</div><div><br class=""></div></body></html>