E3018 Types Errors

Types

type mismatch in 'when'; comparing '%s' with '%s'

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.