github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/compiler/testdata/func.go (about) 1 package main 2 3 func foo(callback func(int)) { 4 callback(3) 5 } 6 7 func bar() { 8 foo(someFunc) 9 } 10 11 func someFunc(int) { 12 }