blob: 14804c8471540694032dd449f737fd2191db437b [file] [log] [blame]
Russ Cox80803842012-02-16 23:49:59 -05001// errorcheck
Luuk van Dijk5b2f8d92011-12-15 17:38:47 +01002
Emmanuel Odeke53fd5222016-04-10 14:32:26 -07003// Copyright 2011 The Go Authors. All rights reserved.
Luuk van Dijk5b2f8d92011-12-15 17:38:47 +01004// Use of this source code is governed by a BSD-style
5// license that can be found in the LICENSE file.
6
7// Issue 2563
8package foo
9
10func fn(a float32) {}
11
Ian Lance Taylord5b7c512012-01-26 23:06:47 -080012var f func(arg int) = fn // ERROR "cannot use fn .type func.float32.. as type func.int. in assignment|different parameter types"