Lines Matching refs:x
47 let l:x = {'foo': 'bar'}
48 call assert_equal([1, 2, l:x, 3], flatten([1, [2, l:x], 3]))
50 call assert_equal('bar', l:x.foo)
58 let l:x = [1]
59 let l:y = [x]
63 let l:x[0] = 2
64 call assert_equal([2], l:x)
68 let l:x = [2]
69 let l:y = [1, [l:x], 3] " [1, [[2]], 3]
72 let l:x[0] = 9
73 call assert_equal([1, [9], 3], l:z) " Reference to l:x is kept.
76 let l:x = [1]
78 call add(x, y) " l:x = [1, [2]]
79 call add(y, x) " l:y = [2, [1, [...]]]
80 call assert_equal([1, 2, 1, 2], flatten(l:x, 2))
81 call assert_equal([2, l:x], l:y)