[swift-dev] Unexpected Expr type

Halen Wooten swift at hpwooten.com
Thu Apr 6 17:30:37 CDT 2017


Hi swift devs,

I'm working on SR-4464 to learn how to contribute to Swift. I think I
have the solution, but I'm getting unexpected results.

I'm using the swift repl within Xcode for testing. Here's my test code.

var name = "name"
name = (name)

In TypeChecker::diagnoseSelfAssignment in CSDiag.cpp, the src of the
AssignExpr is a plain Expr *, but I would expect it to be a ParenExpr
*. Could someone help me figure out what's happening?

Thanks,
Halen


More information about the swift-dev mailing list