Indeed the output is misleading. I agree this should be a bug but the compiler in general is not very chatty about the reasons of compile errors. Compared to other languages, the Go compiler error messages sometimes seem like “ack thbbft”.
2 Likes