Commit 76937156 authored by Ian Lance Taylor's avatar Ian Lance Taylor

test: add test for invalid nil == nil

R=gri
CC=golang-dev
https://golang.org/cl/6868059
parent add1bed7
// errorcheck
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Issue 4283: nil == nil can't be done as the type is unknown.
package p
func F1() bool {
return nil == nil // ERROR "invalid"
}
func F2() bool {
return nil != nil // ERROR "invalid"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment