Skip to content
ricardoboss edited this page Sep 13, 2023 · 1 revision

Invalid Variable Assignment Exception

Description

This error occurs when a variable is assigned to a value that is not of the same type as the variable.

Example

number a = "Hello"

Remediation

Ensure that the variable is assigned to a value of the same type.

- number a = "Hello"
+ string a = "Hello"

or:

- number a = "Hello"
+ number a = 1