<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="">Hi, Rick. The error seems to be a little better in master:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(147, 58, 33); background-color: rgb(223, 219, 195);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""><stdin>:20:11: </b></span><span style="font-variant-ligatures: no-common-ligatures; color: #b12513" class=""><b class="">error: </b></span><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">cannot convert value of type 'CGPoint?' to expected argument type 'inout CGPoint'</b></span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(77, 47, 45); background-color: rgb(223, 219, 195);" class=""><span style="font-variant-ligatures: no-common-ligatures" class="">points[0].anchorPt += dv</span></div><div style="margin: 0px; font-size: 11px; line-height: normal; font-family: Menlo; color: rgb(0, 164, 0); background-color: rgb(223, 219, 195);" class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class="">~~~~~~~~~~^~~~~~~~</b></span></div></div><div class=""><span style="font-variant-ligatures: no-common-ligatures" class=""><b class=""><br class=""></b></span></div><div class="">but that's still not great. So, yes, please do file a bug at <a href="http://bugs.swift.org" class="">bugs.swift.org</a>.</div><div class=""><br class=""></div><div class="">Thank you!</div><div class="">Jordan</div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">On Nov 11, 2016, at 13:29, Rick Mann via swift-users <<a href="mailto:swift-users@swift.org" class="">swift-users@swift.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">I think the error I'm getting here is misleading. Should I file a bug?<br class=""><br class="">import CoreGraphics<br class=""><br class="">func<br class="">+=(inLHS : inout CGPoint, inRHS : CGPoint)<br class="">{<br class=""> inLHS.x += inRHS.x<br class=""> inLHS.y += inRHS.y<br class="">}<br class=""><br class="">struct<br class="">PathPoint<br class="">{<br class=""> var anchorPt: CGPoint?<br class="">}<br class=""><br class="">var points = [PathPoint()]<br class=""><br class="">let dv = CGPoint(x: 0, y: 0)<br class="">points[0].anchorPt = dv<br class="">points[0].anchorPt += dv<br class=""><br class=""><br class="">Playground execution failed: error: MyPlayground.playground:17:7: error: cannot subscript a value of type 'inout [PathPoint]' (aka 'inout Array<PathPoint>')<br class="">points[0].anchorPt += dv<br class="">~~~~~~^<br class=""><br class=""><br class=""><br class="">-- <br class="">Rick Mann<br class=""><a href="mailto:rmann@latencyzero.com" class="">rmann@latencyzero.com</a><br class=""><br class=""><br class="">_______________________________________________<br class="">swift-users mailing list<br class="">swift-users@swift.org<br class="">https://lists.swift.org/mailman/listinfo/swift-users<br class=""></div></div></blockquote></div><br class=""></body></html>