Skip to content

Go 1.20+ compiles the example in 09-multiple-generic-types.md that calls for explicit instantiation #23

@syedriko

Description

@syedriko

This is the example:

./prog.go:36:26: cannot use generic function Sum without instantiation

And here's the playground link: https://go.dev/play/p/ZeSWNvI-SQi?v=gotip

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions