E3018 Type Errors

array-literal-required

array type requires array literal

When this occurs

`const arr [int] = 10`

Example error message

error[E3018]: array type requires value in {} format, got scalar

How to fix

Initialize arrays with array literals: `{1, 2, 3}` not a single value.

Related errors

No related errors.