v/vlib/v/checker/tests/no_interface_instantiation_...

12 lines
107 B
V

interface Speaker {
speak()
}
fn my_fn(s Speaker) {}
fn main() {
my_fn(
speak: 1
)
}