inferType

Translate init to an Expression in order to infer the type.

Parameters

init

Initializer AST node

sc
Type: Scope*

context

Return Value

an equivalent ExpInitializer if successful, or ErrorInitializer if it cannot be translated

Meta