v/vlib/v/checker/tests/c_fn_surplus_args.vv

20 lines
255 B
V

fn C.no() // untyped
fn C.y1(int)
fn C.ret() u8
fn main() {
C.no(1) // allowed
C.y1()
C.y1(1) // ok
C.y1(1, 2)
C.ret() // ok
C.ret(1)
// avoid cgen whilst warning, later above should error
main()
C.af() // ok
C.af(3)
}
[trusted]
fn C.af() int