test: fix cl and ssa tests
This commit is contained in:
@@ -1,8 +1,6 @@
|
||||
package async
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/goplus/llgo/x/async"
|
||||
)
|
||||
|
||||
@@ -27,13 +25,3 @@ func UseGenInts() int {
|
||||
}
|
||||
return r
|
||||
}
|
||||
|
||||
func GenIntsWithDefer() (co *async.Promise[int]) {
|
||||
defer func() {
|
||||
if r := recover(); r != nil {
|
||||
fmt.Println("panic:", r)
|
||||
}
|
||||
}()
|
||||
co.Yield(1)
|
||||
panic("GenIntsWithDefer")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user