mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
15 lines
213 B
V
15 lines
213 B
V
module sub
|
|
|
|
import sub.foo.c
|
|
|
|
@[typedef]
|
|
pub struct C.sub_foo {
|
|
a int
|
|
}
|
|
|
|
pub type Foo = C.sub_foo
|
|
|
|
// avoiding compiler warnings: module 'c (sub.foo.c)' is imported but never used
|
|
fn bar() {
|
|
_ = c.used_import
|
|
}
|