blob: d5729f820d233225722ba99ba1aac24490e93c77 [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() {
Russ Coxbe2edb52009-03-03 08:39:12 -080012 f(map[string]string{"a":"b","c":"d"});
Russ Cox6f169872009-09-29 21:21:14 -070013 f([...]int{1,2,3});
14 f(([...]int){1,2,3});
15 f((map[string]string){"a":"b","c":"d"});
16 f((map[string]func()){"a":g,"c":g});
Russ Coxebc10db2009-02-18 10:07:46 -080017 f(make(chan(<-chan int)));
18 f(make(chan<-(chan int)));
19}