vxx2 / vlib / v / checker / tests / interface_init_err.vv
16 lines · 13 sloc · 164 bytes · 6fa8e4269e19a7330339cc98cb000530e42829f3
Raw
1interface Handler {
2 foo string
3 handle(int) int
4}
5
6struct Server {
7 handler Handler
8}
9
10fn (s Server) handle(x int) int {
11 return x
12}
13
14fn main() {
15 _ := Server{}
16}
17