runtime: print/panic complex

This commit is contained in:
visualfc
2024-06-20 15:52:56 +08:00
parent 32883b4e18
commit 02a5375503
7 changed files with 114 additions and 9 deletions

10
cl/_testrt/complex/in.go Normal file
View File

@@ -0,0 +1,10 @@
package main
type T complex64
func main() {
c := 1 + 2i
d := T(c)
println(c, real(c), imag(c))
println(d, real(d), imag(d))
}