You can use *new(Version) instead of Version{} to avoid parsing ambiguity. On Sunday, March 16, 2025 at 9:30:25 PM UTC+8 Christophe Meessen wrote:
> Hello, > > You'll find the minimal example code generating the compilation error > here: https://go.dev/play/p/Vb-dNr2DpzM > > It is easy to get around it as the example shows. Why is the compiler > considering this as an error ? > > -- > Bien cordialement > Ch.Meessen > > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/908689f4-aaf3-4ef7-a5d1-4c482dd3006an%40googlegroups.com.