S09007
Error Code
S09007
Error Message
JIT: Right operand of 'cast' must be a constant. RefId: S09007
Probable Causes
The right operand of cast
($
) must be a constant
indicating the data type, such as INT and LONG.
In the following script, the error occurs because the right operand of
cast
, type, is a variable assigned the value
LONG:@jit
def demo() {
a = 1
type = LONG
a$type
}
demo()
Solutions
Ensure that the right operand of cast ($) is a
constant.
@jit
def demo() {
a = 1
a$LONG
}
demo()