1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/cmd/tools/vwhere/test/file_one.v

29 lines
457 B
V
Raw Normal View History

module test
// Test declarations
fn main() {
p_1 := Programmer{'Programmer', 'Inmutable'}
mut p_2 := Programmer{'Programmer', 'Mutable'}
}
struct Programmer {
f_name string
l_name string
}
fn (p Programmer) drink(cups int) string {
return 'drink coffee, return program'
}
pub struct Brogrammer {
f_name string
life []Stories
}
pub fn (p Brogrammer) drink(glasses int) string {
return 'drink beer, return script cluster'
}
struct Stories {}