<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(79, 129, 135);" class="">iClass<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">.</span><span style="font-variant-ligatures: no-common-ligatures; color: #31595d" class="">myProperty</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">(</span>iClass<span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">())(</span><span style="font-variant-ligatures: no-common-ligatures; color: #d12f1b" class="">"func"</span><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">)</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(79, 129, 135);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""><br class=""></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(79, 129, 135);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class="">But I would rather avoid shadowing at all.</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(79, 129, 135);" class=""><span style="font-variant-ligatures: no-common-ligatures; color: #000000" class=""><br class=""></span></div><div><blockquote type="cite" class=""><div class="">Am 08.01.2016 um 13:24 schrieb Wallacy via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>>:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div class="">class iClass{</div><div class=""> let myProperty:(String)->() = { value in</div><div class=""> print("1: \(value)");</div><div class=""> }</div><div class=""> func myProperty(value: String)->() {</div><div class=""> print("2: \(value)");</div><div class=""> }</div><div class="">}</div><div class=""><br class=""></div><div class="">iClass().myProperty("a"); // 1: a</div><div class=""><br class=""></div><div class="">No error is thrown in this case, however it is not possible to call the "myProperty (value: String) -> ()" function, is there any alternative? This is expected behavior?<br class=""></div></div>
</div></blockquote></div><br class=""></div></body></html>