github.com/goplus/llgo@v0.8.3/cl/_testrt/closure/in.go (about)

     1  package main
     2  
     3  import (
     4  	"github.com/goplus/llgo/internal/runtime/c"
     5  )
     6  
     7  func main() {
     8  	func(n1, n2 int) {
     9  		c.Printf(c.Str("%d %d\n"), n1, n2)
    10  	}(100, 200)
    11  	fn1 := func(n1, n2 int) {
    12  		c.Printf(c.Str("%d %d\n"), n1, n2)
    13  	}
    14  	fn2 := func() {
    15  		fn1(100, 200)
    16  	}
    17  	fn2()
    18  }