More than one overload fits this call equally well, so Auk can't choose one, or an overloaded function was used as a value, where there is no call to choose by.
Wrong#
fn size<T>(xs: [T]): int = xs.len()
fn size(xs: [int]): int = 0
fn main() { print(size([1])) }Fixed#
fn size<T>(xs: [T]): int = xs.len()
fn zeros(xs: [int]): int = 0
fn main() { print(size([1])) }Common causes#
- A generic overload and a specific one that both fit: rename one of them.
- Passing an overloaded function by name,
xs.map(show): wrap it,xs.map(x => show(x)).