runtime: print/panic complex
This commit is contained in:
10
cl/_testrt/complex/in.go
Normal file
10
cl/_testrt/complex/in.go
Normal 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))
|
||||
}
|
||||
Reference in New Issue
Block a user