implicitCastTo

Attempt to implicitly cast the expression into type t.

This routine will change e. To check the matching level, use implicitConvTo.

implicitCastTo

Parameters

e Expression

Expression that is to be casted

sc Scope*

Current scope

t Type

Expected resulting type

Return Value

The resulting casted expression (mutating e), or ErrorExp if such an implicit conversion is not possible.

Suggestion Box / Bug Report