14 lines
146 B
Go
14 lines
146 B
Go
package main
|
|
|
|
func main() {
|
|
_ = fn1()
|
|
}
|
|
|
|
func fn1() bool {
|
|
x := true
|
|
if x { //@ diag(`should use 'return x'`)
|
|
return true
|
|
}
|
|
return false
|
|
}
|