@@ -27,28 +27,28 @@ func noUseParams(params string) int {
27
27
28
28
func f (param int ) int {
29
29
println (param )
30
- useOutOfIf := 1212121 // ERROR "assigned, but reassigned without using the value"
30
+ useOutOfIf := 1212121 // ERROR "assigned to useOutOfIf , but reassigned without using the value"
31
31
ret := 0
32
32
if false {
33
- useOutOfIf = 200 // ERROR "assigned, but never used afterwards"
33
+ useOutOfIf = 200 // ERROR "assigned to useOutOfIf , but never used afterwards"
34
34
return 0
35
35
} else if param == 100 {
36
- useOutOfIf = 100 // ERROR "assigned, but reassigned without using the value"
36
+ useOutOfIf = 100 // ERROR "assigned to useOutOfIf , but reassigned without using the value"
37
37
useOutOfIf = 201
38
38
useOutOfIf = pa (useOutOfIf )
39
- useOutOfIf += 200 // ERROR "assigned, but reassigned without using the value"
39
+ useOutOfIf += 200 // ERROR "assigned to useOutOfIf , but reassigned without using the value"
40
40
} else {
41
41
useOutOfIf = 100
42
42
useOutOfIf += 100
43
43
useOutOfIf = pa (useOutOfIf )
44
- useOutOfIf += 200 // ERROR "assigned, but reassigned without using the value"
44
+ useOutOfIf += 200 // ERROR "assigned to useOutOfIf , but reassigned without using the value"
45
45
}
46
46
47
47
if false {
48
- useOutOfIf = 200 // ERROR "assigned, but never used afterwards"
48
+ useOutOfIf = 200 // ERROR "assigned to useOutOfIf , but never used afterwards"
49
49
return 0
50
50
} else if param == 200 {
51
- useOutOfIf = 100 // ERROR "assigned, but reassigned without using the value"
51
+ useOutOfIf = 100 // ERROR "assigned to useOutOfIf , but reassigned without using the value"
52
52
useOutOfIf = 201
53
53
useOutOfIf = pa (useOutOfIf )
54
54
useOutOfIf += 200
@@ -62,7 +62,7 @@ func f(param int) int {
62
62
println (useOutOfIf )
63
63
useOutOfIf = 192
64
64
useOutOfIf += 100
65
- useOutOfIf += 200 // ERROR "assigned, but never used afterwards"
65
+ useOutOfIf += 200 // ERROR "assigned to useOutOfIf , but never used afterwards"
66
66
return ret
67
67
}
68
68
@@ -71,7 +71,7 @@ func checkLoopTest() int {
71
71
noUse := 1111
72
72
println (noUse )
73
73
74
- noUse = 1111 // ERROR "assigned, but never used afterwards"
74
+ noUse = 1111 // ERROR "assigned to noUse , but never used afterwards"
75
75
for {
76
76
if hoge == 14 {
77
77
break
@@ -86,29 +86,29 @@ func r(param int) int {
86
86
useOutOfIf := 1212121
87
87
ret := 0
88
88
if false {
89
- useOutOfIf = 200 // ERROR "assigned, but never used afterwards"
89
+ useOutOfIf = 200 // ERROR "assigned to useOutOfIf , but never used afterwards"
90
90
return 0
91
91
} else if param == 100 {
92
92
ret = useOutOfIf
93
93
} else if param == 200 {
94
- useOutOfIf = 100 // ERROR "assigned, but reassigned without using the value"
94
+ useOutOfIf = 100 // ERROR "assigned to useOutOfIf , but reassigned without using the value"
95
95
useOutOfIf = 100
96
96
useOutOfIf = pa (useOutOfIf )
97
- useOutOfIf += 200 // ERROR "assigned, but reassigned without using the value"
97
+ useOutOfIf += 200 // ERROR "assigned to useOutOfIf , but reassigned without using the value"
98
98
}
99
99
useOutOfIf = 12
100
100
println (useOutOfIf )
101
101
useOutOfIf = 192
102
102
useOutOfIf += 100
103
- useOutOfIf += 200 // ERROR "assigned, but never used afterwards"
103
+ useOutOfIf += 200 // ERROR "assigned to useOutOfIf , but never used afterwards"
104
104
return ret
105
105
}
106
106
107
107
func mugen () {
108
108
var i int
109
109
var hoge int
110
110
for {
111
- hoge = 5 // ERROR "assigned, but reassigned without using the value"
111
+ hoge = 5 // ERROR "assigned to hoge , but reassigned without using the value"
112
112
// break
113
113
}
114
114
0 commit comments