blob: ec0dbc6c34bb44d31390ab93da93de0f5ecf4ae3 [file] [log] [blame]
Russ Cox80803842012-02-16 23:49:59 -05001// run
Russ Cox77817e02010-04-29 16:07:14 -07002
Emmanuel Odeke53fd5222016-04-10 14:32:26 -07003// Copyright 2010 The Go Authors. All rights reserved.
Russ Cox77817e02010-04-29 16:07:14 -07004// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
Brad Fitzpatrick2ae77372015-07-10 17:17:11 -06007// https://golang.org/issue/749
Russ Cox77817e02010-04-29 16:07:14 -07008
9package main
10
11func f() (ok bool) { return false }
12
13func main() {
14 var i interface{}
15 i = f
16 _ = i.(func()bool)
17 _ = i.(func()(bool))
18}