File tree Expand file tree Collapse file tree 1 file changed +3
-26
lines changed Expand file tree Collapse file tree 1 file changed +3
-26
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ func noUseParams(params string) int {
27
27
return a
28
28
}
29
29
30
- func f (param int ) int {
30
+ func manyif (param int ) int {
31
31
println (param )
32
32
useOutOfIf := 1212121 // ERROR "wasted assignment"
33
33
ret := 0
@@ -82,30 +82,7 @@ func checkLoopTest() int {
82
82
return hoge
83
83
}
84
84
85
- func r (param int ) int {
86
- println (param )
87
- useOutOfIf := 1212121
88
- ret := 0
89
- if false {
90
- useOutOfIf = 200 // ERROR "reassigned, but never used afterwards"
91
- return 0
92
- } else if param == 100 {
93
- ret = useOutOfIf
94
- } else if param == 200 {
95
- useOutOfIf = 100 // ERROR "wasted assignment"
96
- useOutOfIf = 100
97
- useOutOfIf = p (useOutOfIf )
98
- useOutOfIf += 200 // ERROR "wasted assignment"
99
- }
100
- useOutOfIf = 12
101
- println (useOutOfIf )
102
- useOutOfIf = 192
103
- useOutOfIf += 100
104
- useOutOfIf += 200 // ERROR "reassigned, but never used afterwards"
105
- return ret
106
- }
107
-
108
- func mugen () {
85
+ func infinity () {
109
86
var i int
110
87
var hoge int
111
88
for {
@@ -117,7 +94,7 @@ func mugen() {
117
94
return
118
95
}
119
96
120
- func noMugen () {
97
+ func infinity2 () {
121
98
var i int
122
99
var hoge int
123
100
for {
You can’t perform that action at this time.
0 commit comments