blob: 1872cd0ebc9ee8a41ba7bb884aef735578febf34 [file] [log] [blame]
Russ Coxebc10db2009-02-18 10:07:46 -08001// $G $D/$F.go
2
3// Copyright 2009 The Go Authors. All rights reserved.
4// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
7package main
8
9func f(interface{})
10func g() {}
11func main() {
Rob Pike4f61fc92010-09-04 10:36:13 +100012 f(map[string]string{"a":"b","c":"d"})
13 f([...]int{1,2,3})
14 f(map[string]func(){"a":g,"c":g})
15 f(make(chan(<-chan int)))
16 f(make(chan<-(chan int)))
Russ Coxebc10db2009-02-18 10:07:46 -080017}