Every parameter needs a type: annotate it in one clause (x: T) or in a header line. A literal
pattern like 0 or "a" implies its type, but a bare name or _ alone doesn't. Auk doesn't
infer parameter types from the body, so signatures stay readable on their own.
Wrong#
fn double(x) = x * 2Fixed#
fn double(x: int): int = x * 2Common causes#
- A parameter written without
: Type, as in Python or JavaScript. - All clauses use patterns that don't fix the type (
_,[]for a list of what?). - A shape method parameter other than
selfwith no type.