Gitly
English
Русский
Español
日本語
中文
Português
Log in
Register
v2
/
vlib
/
v
/
tests
/
project_issue_21476
/
main.v
12
lines
·
8
sloc
·
155 bytes
·
706179fb745803ff805f959cae8e87586a4c0e2c
Raw
1
module
main
2
3
import
zmod_foo { Foo }
4
5
struct
Bar {}
6
7
fn
main() {
8
// note: will succeed with foo.Foo
9
f := Foo.new[Bar](Bar{})
10
11
println(typeof(f).name)
12
}
13