author | Mikael Berthe <mikael@lilotux.net> |
Tue, 23 Aug 2022 22:39:43 +0200 | |
changeset 260 | 445e01aede7e |
permissions | -rw-r--r-- |
260 | 1 |
//go:build !go1.17 |
2 |
// +build !go1.17 |
|
3 |
||
4 |
// TODO: once support for Go 1.16 is dropped, this file can be |
|
5 |
// merged/removed with assertion_compare_go1.17_test.go and |
|
6 |
// assertion_compare_can_convert.go |
|
7 |
||
8 |
package assert |
|
9 |
||
10 |
import "reflect" |
|
11 |
||
12 |
// Older versions of Go does not have the reflect.Value.CanConvert |
|
13 |
// method. |
|
14 |
func canConvert(value reflect.Value, to reflect.Type) bool { |
|
15 |
return false |
|
16 |
} |