Read a type error

Add : Type after a binding to state its type. Here the annotation says count is an int, but the value is a string. Check reports the problem without running the program and points back to main.mn.

Change "three" to 3. The automatic check is debounced, so it waits for a pause in your typing before it compiles.

fn main() {
  let count: int = "three"
  println(count)
}
Output & diagnostics
Try Check. Expected diagnostic:
expected int
Ctrl/⌘+Enter checks the current lesson.