Commit 62891fb8 authored by Rémy Oudompheng's avatar Rémy Oudompheng

cmd/gc: fix missing slice/array types in export data.

Fixes #5614.

R=golang-dev
CC=golang-dev
https://golang.org/cl/9953044
parent 850d1026
......@@ -164,6 +164,7 @@ reexportdep(Node *n)
case ODOTTYPE:
case ODOTTYPE2:
case OSTRUCTLIT:
case OARRAYLIT:
case OPTRLIT:
case OMAKEMAP:
case OMAKESLICE:
......
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}}
}
package x
import "./rethinkgo"
var S *rethinkgo.Session
package y
import "./x"
var T = x.S
// 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
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