Commit 1e1a3c50 authored by Russ Cox's avatar Russ Cox

6g gives no error on "0 != nil"

R=ken
OCL=20289
CL=20289
parent 748287d4
// errchk $G $D/$F.go
// Copyright 2009 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.
package main
func main() {
var x int64 = 0;
println(x != nil); // ERROR ".*"
println(0 != nil); // ERROR ".*"
}
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