mirror of
https://github.com/vlang/v.git
synced 2025-09-14 23:12:33 +03:00
15 lines
132 B
Text
15 lines
132 B
Text
module main
|
|
|
|
struct StructA {}
|
|
|
|
fn f[T](x T) {
|
|
d := x + x
|
|
println(d)
|
|
}
|
|
|
|
fn main() {
|
|
f(123)
|
|
f('abc')
|
|
// f(main)
|
|
f(StructA{})
|
|
}
|