nilfunc.go 313 B

12345678910111213
  1. // Copyright 2013 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. package nilfunc
  5. func F() {}
  6. func Comparison() {
  7. if F == nil { // ERROR "comparison of function F == nil is always false"
  8. panic("can't happen")
  9. }
  10. }