☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
gen9.go
☽
☼
_test/gen9.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
println(add(
1
,
2
))
11
}
12
13
// Error:
14
// untyped int does not implement main.Float