mirror of
https://github.com/golang/go
synced 2024-09-04 23:44:16 +00:00
cmd/gc: fix missing slice/array types in export data.
Fixes #5614. R=golang-dev CC=golang-dev https://golang.org/cl/9953044
This commit is contained in:
parent
850d1026ad
commit
62891fb811
|
@ -164,6 +164,7 @@ reexportdep(Node *n)
|
|||
case ODOTTYPE:
|
||||
case ODOTTYPE2:
|
||||
case OSTRUCTLIT:
|
||||
case OARRAYLIT:
|
||||
case OPTRLIT:
|
||||
case OMAKEMAP:
|
||||
case OMAKESLICE:
|
||||
|
|
16
test/fixedbugs/issue5614.dir/rethinkgo.go
Normal file
16
test/fixedbugs/issue5614.dir/rethinkgo.go
Normal file
|
@ -0,0 +1,16 @@
|
|||
package rethinkgo
|
||||
|
||||
type Session struct {
|
||||
}
|
||||
|
||||
func (s *Session) Run(query Exp) *int { return nil }
|
||||
|
||||
type List []interface{}
|
||||
|
||||
type Exp struct {
|
||||
args []interface{}
|
||||
}
|
||||
|
||||
func (e Exp) UseOutdated(useOutdated bool) Exp {
|
||||
return Exp{args: List{e, useOutdated}}
|
||||
}
|
7
test/fixedbugs/issue5614.dir/x.go
Normal file
7
test/fixedbugs/issue5614.dir/x.go
Normal file
|
@ -0,0 +1,7 @@
|
|||
package x
|
||||
|
||||
import "./rethinkgo"
|
||||
|
||||
var S *rethinkgo.Session
|
||||
|
||||
|
5
test/fixedbugs/issue5614.dir/y.go
Normal file
5
test/fixedbugs/issue5614.dir/y.go
Normal file
|
@ -0,0 +1,5 @@
|
|||
package y
|
||||
|
||||
import "./x"
|
||||
|
||||
var T = x.S
|
11
test/fixedbugs/issue5614.go
Normal file
11
test/fixedbugs/issue5614.go
Normal file
|
@ -0,0 +1,11 @@
|
|||
// compiledir
|
||||
|
||||
// Copyright 2013 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 5614: exported data for inlining may miss
|
||||
// named types when used in implicit conversion to
|
||||
// their underlying type.
|
||||
|
||||
package ignored
|
Loading…
Reference in a new issue