build: separate compiler and libs
This commit is contained in:
11
compiler/cl/_testgo/tprecurfn/in.go
Normal file
11
compiler/cl/_testgo/tprecurfn/in.go
Normal file
@@ -0,0 +1,11 @@
|
||||
package main
|
||||
|
||||
type My[T any] struct {
|
||||
fn func(n T)
|
||||
next *My[T]
|
||||
}
|
||||
|
||||
func main() {
|
||||
m := &My[int]{next: &My[int]{fn: func(n int) { println(n) }}}
|
||||
m.next.fn(100)
|
||||
}
|
||||
Reference in New Issue
Block a user