swift
1caf2c75 - Sema: Fix code completion crash when a ParamDecl hasn't had its type set yet

Commit
7 years ago
Sema: Fix code completion crash when a ParamDecl hasn't had its type set yet We set the type of ParamDecls when applying solutions in the normal path, but sometimes code completion will type check an expression inside a closure without checking the outer expression. In this case, we may have inferred a type for the ParamDecl, but we don't write it back. Instead, just look at the DeclRefExpr's type. Fixes <rdar://problem/42098113>.
Author
Committer
Parents
Loading