☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
type27.go
☽
☼
_test/type27.go
code
plain
raw
symbols
SCIP
Apache-2.0
2019 Containous SAS; 2020 Traefik Labs SAS
debian/copyright
1
package
main
2
3
import
"fmt"
4
5
type
Foo
=
int
6
7
func
(f
Foo
)
Bar
()
int
{
8
return
f * f
9
}
10
11
func
main() {
12
x := Foo(
1
)
13
fmt.
Println
(x.
Bar
())
14
}
15
16
// Error:
17
// 7:1: cannot define new methods on non-local type int