Home | History | Annotate | Download | only in fixedbugs
      1 // compile
      2 
      3 // Copyright 2017 The Go Authors. All rights reserved.
      4 // Use of this source code is governed by a BSD-style
      5 // license that can be found in the LICENSE file.
      6 
      7 // Issue 12536: compiler crashes while checking keys in a map literal for equality
      8 
      9 package p
     10 
     11 func main() {
     12 	m1 := map[interface{}]interface{}{
     13 		nil:  0,
     14 		true: 1,
     15 	}
     16 	m2 := map[interface{}]interface{}{
     17 		true: 1,
     18 		nil:  0,
     19 	}
     20 	println(len(m1))
     21 	println(len(m2))
     22 }
     23