move out c/cpp/py

This commit is contained in:
Li Jie
2025-04-03 15:52:18 +08:00
parent 0a8a4eb6a6
commit ed366568b4
777 changed files with 4608 additions and 139122 deletions

26
cl/_testgo/tpnamed/in.go Normal file
View File

@@ -0,0 +1,26 @@
package main
type Void = [0]byte
type Future[T any] func() T
type IO[T any] func() Future[T]
func WriteFile(fileName string) IO[error] {
return func() Future[error] {
return func() error {
return nil
}
}
}
func RunIO[T any](call IO[T]) T {
return call()()
}
func main() {
RunIO[Void](func() Future[Void] {
return func() (ret Void) {
return
}
})
}