Russ Cox | 8080384 | 2012-02-16 23:49:59 -0500 | [diff] [blame] | 1 | // errorcheck |
Luuk van Dijk | 5b2f8d9 | 2011-12-15 17:38:47 +0100 | [diff] [blame] | 2 | |
Emmanuel Odeke | 53fd522 | 2016-04-10 14:32:26 -0700 | [diff] [blame] | 3 | // Copyright 2011 The Go Authors. All rights reserved. |
Luuk van Dijk | 5b2f8d9 | 2011-12-15 17:38:47 +0100 | [diff] [blame] | 4 | // 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 |
| 8 | package foo |
| 9 | |
| 10 | func fn(a float32) {} |
| 11 | |
Ian Lance Taylor | d5b7c51 | 2012-01-26 23:06:47 -0800 | [diff] [blame] | 12 | var f func(arg int) = fn // ERROR "cannot use fn .type func.float32.. as type func.int. in assignment|different parameter types" |