1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package main import "fmt" func F[T any](n T) { fmt.Printf("called\n") } func G[T any](n T) { F(n) fmt.Printf("after\n") } func main() { G(3) }