mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
gc: export nil literals without inferred type.
Fixes #2678 R=rsc CC=golang-dev https://golang.org/cl/5529066
This commit is contained in:
parent
b8f76764cb
commit
feaa9ed10a
4 changed files with 24 additions and 1 deletions
11
test/fixedbugs/bug392.go
Normal file
11
test/fixedbugs/bug392.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
// $G $D/$F.dir/one.go && $G -ll $D/$F.dir/two.go
|
||||
|
||||
// Copyright 2011 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 2678
|
||||
// -ll flag in command above is to force typecheck on import, needed to trigger the bug.
|
||||
// fixedbugs/bug392.dir/two.go:3: cannot call non-function *one.file (type one.file)
|
||||
|
||||
package ignored
|
||||
Loading…
Add table
Add a link
Reference in a new issue