Russ Cox | ebc10db | 2009-02-18 10:07:46 -0800 | [diff] [blame] | 1 | // $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 | |
| 7 | package main |
| 8 | |
| 9 | func f(interface{}) |
| 10 | func g() {} |
| 11 | func main() { |
Russ Cox | be2edb5 | 2009-03-03 08:39:12 -0800 | [diff] [blame] | 12 | f(map[string]string{"a":"b","c":"d"}); |
Russ Cox | 6f16987 | 2009-09-29 21:21:14 -0700 | [diff] [blame] | 13 | 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 Cox | ebc10db | 2009-02-18 10:07:46 -0800 | [diff] [blame] | 17 | f(make(chan(<-chan int))); |
| 18 | f(make(chan<-(chan int))); |
| 19 | } |