1
0
mirror of https://github.com/golang/go synced 2024-11-11 19:51:37 -07: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:
Rémy Oudompheng 2013-06-04 08:18:36 +02:00
parent 850d1026ad
commit 62891fb811
5 changed files with 40 additions and 0 deletions

View File

@ -164,6 +164,7 @@ reexportdep(Node *n)
case ODOTTYPE:
case ODOTTYPE2:
case OSTRUCTLIT:
case OARRAYLIT:
case OPTRLIT:
case OMAKEMAP:
case OMAKESLICE:

View 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}}
}

View File

@ -0,0 +1,7 @@
package x
import "./rethinkgo"
var S *rethinkgo.Session

View File

@ -0,0 +1,5 @@
package y
import "./x"
var T = x.S

View 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