««« CL
9953044 /
0e1b2f7384d2
cmd/gc: fix missing slice/array types in export data.
Fixes #5614.
R=golang-dev
CC=golang-dev
https://golang.org/cl/
9953044
»»»
R=iant, remyoudompheng, dsymonds
CC=golang-dev
https://golang.org/cl/
10033043
case ODOTTYPE:
case ODOTTYPE2:
case OSTRUCTLIT:
+ case OARRAYLIT:
case OPTRLIT:
case OMAKEMAP:
case OMAKESLICE:
--- /dev/null
+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}}
+}
--- /dev/null
+package x
+
+import "./rethinkgo"
+
+var S *rethinkgo.Session
+
+
--- /dev/null
+package y
+
+import "./x"
+
+var T = x.S
--- /dev/null
+// 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