☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
gen8.go
☽
☼
_test/gen8.go
code
plain
raw
symbols
SCIP
Apache-2.0
2019 Containous SAS; 2020 Traefik Labs SAS
debian/copyright
1
package
main
2
3
type
Float
interface
{
4
~
float32
| ~
float64
5
}
6
7
func
add[T
Float
](a, b
T
)
float64
{
return
float64(a) + float64(b) }
8
9
func
main() {
10
var
x, y
int
=
1
,
2
11
println(add(x, y))
12
}
13
14
// Error:
15
// int does not implement main.Float