1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib/v/tests/alias_in_a_struct_field_autostr_test.v

13 lines
192 B
V

type Duration = i64
struct Abc {
d Duration
}
fn test_string_interpolation_of_alias() {
x := Abc{
d: i64(9_123_456_789)
}
assert '${x}' == 'Abc{\n d: Duration(9123456789)\n}'
}