inferType

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

Parameters

init Initializer

Initializer AST node

sc Scope*

context

Return Value

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

Suggestion Box / Bug Report