vxx2 / vlib / v / checker / tests / interface_implemented_by_function.vv
7 lines · 5 sloc · 69 bytes · 6762c9a68958d1367c86d541969b57fe464eca36
Raw
1interface Ch {}
2
3fn id(x Ch) Ch { return x }
4
5fn main() {
6 id(id)
7}
8