mirror of https://github.com/golang/go.git
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:
|
||||
|
|
|
|||
|
|
@ -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}}
|
||||
}
|
||||
|
|
@ -0,0 +1,7 @@
|
|||
package x
|
||||
|
||||
import "./rethinkgo"
|
||||
|
||||
var S *rethinkgo.Session
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
package y
|
||||
|
||||
import "./x"
|
||||
|
||||
var T = x.S
|
||||
|
|
@ -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 New Issue