1// Copyright 2017 The Go Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style 3// license that can be found in the LICENSE file. 4 5package main 6 7import "reflect" 8 9type C struct { 10} 11 12func F(c *C) *C { 13 return nil 14} 15 16func G() bool { 17 var c *C 18 return reflect.TypeOf(F).Out(0) == reflect.TypeOf(c) 19} 20