Home | History | Annotate | Download | only in test

Lines Matching refs:case

16 	case 0:
17 case 0: // ERROR "duplicate case 0 in switch"
21 case 0:
22 case int(0): // ERROR "duplicate case 0 in switch"
28 case 5:
29 case 5: // ERROR "duplicate case 5 in switch"
30 case 5.0: // ERROR "duplicate case 5 in switch"
36 case "":
37 case "": // ERROR "duplicate case .. in switch"
38 case "abc":
39 case "abc": // ERROR "duplicate case .abc. in switch"
45 case 0:
46 case 0: // ERROR "duplicate case 0 in switch"
47 case int64(0):
48 case float32(10):
49 case float32(10): // ERROR "duplicate case float32\(10\) in switch"
50 case float64(10):
51 case float64(10): // ERROR "duplicate case float64\(10\) in switch"
57 case int:
58 case int: // ERROR "duplicate case int in type switch"
59 case int64:
60 case error:
61 case error: // ERROR "duplicate case error in type switch"
62 case fmt.Stringer:
63 case fmt.Stringer: // ERROR "duplicate case fmt.Stringer in type switch"
64 case struct {
67 case struct {
70 case struct {
72 }: // ERROR "duplicate case struct { i int .tag1. } in type switch"
78 case [1]int{0}:
79 case [1]int{0}: // OK -- see issue 15896
86 case 0 == 0:
88 case 1 == 1: // Intentionally OK, even though a duplicate of the above const true
97 case 0:
98 case 0, 1: // ERROR "duplicate case 0"
99 case 1, 2, 3, 4: // ERROR "duplicate case 1"