summaryrefslogtreecommitdiff
path: root/test/ken/cplx3.go
diff options
context:
space:
mode:
Diffstat (limited to 'test/ken/cplx3.go')
-rw-r--r--test/ken/cplx3.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ken/cplx3.go b/test/ken/cplx3.go
index 83acc15ff..979e53f56 100644
--- a/test/ken/cplx3.go
+++ b/test/ken/cplx3.go
@@ -25,9 +25,9 @@ func main() {
println(c)
var a interface{}
- switch c := reflect.NewValue(a).(type) {
- case *reflect.ComplexValue:
- v := c.Get()
+ switch c := reflect.NewValue(a); c.Kind() {
+ case reflect.Complex64, reflect.Complex128:
+ v := c.Complex()
_, _ = complex128(v), true
}
}