fix tests of bad map keys to use slices instead.
R=r
DELTA=7 (0 added, 1 deleted, 6 changed)
OCL=31123
CL=31145
func main()
{
- var b map[string]int;
+ var b []int;
var ib interface{} = b;
use(ib == ib);
}
func main()
{
- var b map[string]int;
+ var b []int;
var ib interface{} = b;
var m = make(map[interface{}] int);
m[ib] = 1;
package main
-import "unsafe"
+import "reflect"
func typeof(x interface{}) string {
- val, typ, indir := unsafe.Reflect(x);
- return typ;
+ return reflect.Typeof(x).String();
}
func f() int {
panic PC=xxx
=========== ./cmp3.go
-comparing uncomparable type map[string] int
+comparing uncomparable type []int
throw: interface compare
panic PC=xxx
panic PC=xxx
=========== ./cmp5.go
-hash of unhashable type map[string] int
+hash of unhashable type []int
throw: interface hash
panic PC=xxx