Rellum Rellum

S0002: parameter needs explicit type annotation

Generated from rellum-diagnostics/src/db.rs.

Explanation

Function parameters are part of a function's public type. Rellum does not infer those parameter types from the function body, so each parameter needs an annotation before the analyzer can type-check calls, imports, or generic instantiations.

Common causes

Canonical fixes

Before:

double(x) : Int = x * 2

After:

double(x: Int) : Int = x * 2

Before:

identity[T](x) : T = x

After:

identity[T](x: T) : T = x

Code example

double(x) : Int = x * 2