Xo is experimental. The source code is not public yet; it will be soon. Read the release notes
Menu · XO0408

Docs

XO0408: const initializer is not a compile time value

error · reported by the checker

A const initializer may use only literals, other constants, struct and enum construction, and collection literals of those. Calls and runtime values such as parameters are not compile time values. Use a let binding, or compute the value with a function. See core 3.1.

Example

fn g() -> Int { 1 }

const X = g()

Fix

const X = 1

Run xo explain XO0408 for this text in a terminal, or see section 10.6 of the specification.