checkParamArgumentReturn

Function argument initializes a return parameter, and that parameter gets assigned to firstArg. Essentially, treat as firstArg = arg;

bool
checkParamArgumentReturn

Parameters

sc Scope*

used to determine current function and module

firstArg Expression

ref argument through which arg may be assigned

arg Expression

initializer for parameter

param Parameter

parameter declaration corresponding to arg

gag bool

do not print error messages

Return Value

Type: bool

true if assignment to firstArg would cause an error

Meta