mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
13 lines
192 B
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}'
|
|
}
|