Commits

Slava Pestov committed ac110c0fc0d
SILGen: When forming a closure, apply substitutions before applying captures We now have enough machinery in place to reference local generic functions which have captures, to get a value of function type that can be passed around. Generic local functions still cannot be directly called from function call expressions, since those go down a different path in SILGenApply.cpp -- the next patch will add support for this case.