mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
11 lines
124 B
V
11 lines
124 B
V
struct AA {
|
|
a shared []int
|
|
}
|
|
|
|
fn test_shared_str() {
|
|
a := AA{
|
|
a: [1, 2]
|
|
}
|
|
assert a.str() == 'AA{\n a: [1, 2]\n}'
|
|
}
|