Handle binding unbound functions later better
This commit is contained in:
parent
576273ac56
commit
cc029d0689
|
@ -52,7 +52,9 @@ namespace Upsilon.Binder
|
|||
(BoundBlockStatement) BindBlockStatement(unboundFunctionStatement.Value.UnboundBlock);
|
||||
var resultType = Scope.ReturnType;
|
||||
Scope = Scope.ParentScope;
|
||||
var variable = (FunctionVariableSymbol)Scope.Variables[unboundFunctionStatement.Key];
|
||||
var variable =
|
||||
(FunctionVariableSymbol) unboundFunctionStatement.Value.Scope.ParentScope.Variables[
|
||||
unboundFunctionStatement.Key];
|
||||
variable.IsBound = true;
|
||||
variable.ResultType = resultType;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue