Hello,
> go mod init example/nameOfSubject
and as a result both contains in respective go.mod file line
> go 1.17
In the case of generic mere writing function definition
> func SumIntsOrFloats[K comparable, V int64 | float64](m map[K]V) V {
> var s V
for _, v := range m {
s += v
}
return s
}
without even calling it produce a compile error
> ./main.go:39:22: type parameters require go1.18 or later
To make it work I needed to change go.mod file to this with proper version 1.18.
But in the case of fuzzing I have done all the examples from tutorial without once encountering error of this type.
Can anyone check if it have similar issue? I don't know if it is minor problem or sign of some substantial flaw, but it is worth checking on few machines.
Best regards,
Kamil