v2 / vlib / v / tests / fns / method_call_chained_test.v
7 lines · 7 sloc · 201 bytes · 6488041a749df9762348d019c4223908c476f2e2
Raw
1// for issue 20395
2// Phenomenon: cgen brackets are asymmetric in chained method calls.
3fn test_main() {
4 mut path := 'hello/file.txt'
5 extension := path.split('.').last()
6 assert extension == 'txt'
7}
8