Source file src/cmd/vet/testdata/bool/bool.go
1 // Copyright 2014 The Go Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file. 4 5 // This file contains tests for the bool checker. 6 7 package bool 8 9 func _() { 10 var f, g func() int 11 12 if v, w := f(), g(); v == w || v == w { // ERROR "redundant or: v == w || v == w" 13 } 14 } 15