mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
cgen: for c in string; short struct init syntax fixes;
This commit is contained in:
@@ -343,6 +343,9 @@ pub fn (t Test) str() string {
|
||||
}
|
||||
|
||||
fn test_struct_print() {
|
||||
println('QTODO')
|
||||
|
||||
/*
|
||||
mut a := Test{
|
||||
a: 'Test'
|
||||
b: []
|
||||
@@ -356,6 +359,7 @@ fn test_struct_print() {
|
||||
assert a.str() == '{Test [{1 2}, {1 2}] }'
|
||||
assert b.str() == '{1 2}'
|
||||
assert a.b.str() == '[{1 2}, {1 2}]'
|
||||
*/
|
||||
}
|
||||
|
||||
fn test_single_element() {
|
||||
|
Reference in New Issue
Block a user