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