E0064#
Warning name: unannotated_toplevel_array
Unannotated toplevel array.
This warning is emitted when a toplevel array literal lacks a type annotation. Add an explicit type annotation to make the intended array type clear.
Erroneous example#
let xs = [1, 2, 3]
test {
inspect(xs[0], content="1")
}
Suggestion#
Annotate the toplevel array:
let xs : Array[Int] = [1, 2, 3]
test {
inspect(xs[0], content="1")
}