☰
Debian Codegraph
@
0.16.1+git20260209.fcb76d1-2
0.16.1+git20260209.fcb76d1-1
/
/
_test
/
issue-1404.go
☽
☼
_test/issue-1404.go
code
plain
raw
symbols
SCIP
Apache-2.0
2019 Containous SAS; 2020 Traefik Labs SAS
debian/copyright
1
package
main
2
3
type
I
interface
{
4
inI
()
5
}
6
7
type
T
struct
{
8
name
string
9
}
10
11
func
(t *
T
)
inI
() {}
12
13
func
main() {
14
var
i
I
= &
T
{name:
"foo"
}
15
16
if
i, ok := i.(*
T
); ok {
17
println(i.
name
)
18
}
19
}
20
21
// Output:
22
// foo