blob: 60ee7ee3f3f66d67fe33e4fffefa681472f2c67b [file] [log] [blame]
Russ Cox80803842012-02-16 23:49:59 -05001// run
Russ Cox77817e02010-04-29 16:07:14 -07002
3// Copyright 2010 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
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}