mirror of
https://github.com/golang/go
synced 2024-11-15 02:40:32 -07:00
53fd522c0d
Follows suit with https://go-review.googlesource.com/#/c/20111. Generated by running $ grep -R 'Go Authors. All' * | cut -d":" -f1 | while read F;do perl -pi -e 's/Go Authors. All/Go Authors. All/g' $F;done The code in cmd/internal/unvendor wasn't changed. Fixes #15213 Change-Id: I4f235cee0a62ec435f9e8540a1ec08ae03b1a75f Reviewed-on: https://go-review.googlesource.com/21819 Reviewed-by: Ian Lance Taylor <iant@golang.org> Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
53 lines
1.3 KiB
Go
53 lines
1.3 KiB
Go
// Copyright 2010 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.
|
|
|
|
// Test that all the types from import2.go made it
|
|
// intact and with the same meaning, by assigning to or using them.
|
|
|
|
package main
|
|
|
|
import "./import2"
|
|
|
|
func f3(func() func() int)
|
|
|
|
func main() {
|
|
p.F3(p.F1)
|
|
p.F3(p.F2())
|
|
f3(p.F1)
|
|
f3(p.F2())
|
|
|
|
p.C1 = (chan<- (chan int))(nil)
|
|
p.C2 = (chan (<-chan int))(nil)
|
|
p.C3 = (<-chan (chan int))(nil)
|
|
p.C4 = (chan (chan<- int))(nil)
|
|
|
|
p.C5 = (<-chan (<-chan int))(nil)
|
|
p.C6 = (chan<- (<-chan int))(nil)
|
|
p.C7 = (chan<- (chan<- int))(nil)
|
|
|
|
p.C8 = (<-chan (<-chan (chan int)))(nil)
|
|
p.C9 = (<-chan (chan<- (chan int)))(nil)
|
|
p.C10 = (chan<- (<-chan (chan int)))(nil)
|
|
p.C11 = (chan<- (chan<- (chan int)))(nil)
|
|
p.C12 = (chan (chan<- (<-chan int)))(nil)
|
|
p.C13 = (chan (chan<- (chan<- int)))(nil)
|
|
|
|
p.R1 = (chan <- chan int)(nil)
|
|
p.R3 = (<- chan chan int)(nil)
|
|
p.R4 = (chan chan <- int)(nil)
|
|
|
|
p.R5 = (<- chan <- chan int)(nil)
|
|
p.R6 = (chan <- <- chan int)(nil)
|
|
p.R7 = (chan <- chan <- int)(nil)
|
|
|
|
p.R8 = (<- chan <- chan chan int)(nil)
|
|
p.R9 = (<- chan chan <- chan int)(nil)
|
|
p.R10 = (chan <- <- chan chan int)(nil)
|
|
p.R11 = (chan <- chan <- chan int)(nil)
|
|
p.R12 = (chan chan <- <- chan int)(nil)
|
|
p.R13 = (chan chan <- chan <- int)(nil)
|
|
|
|
}
|
|
|