// Test field access. // Ref: false --- // Test field on dictionary. #let dict = (nothing: "ness", hello: "world") #test(dict.nothing, "ness") #{ let world = dict .hello test(world, "world") } --- // Test fields on elements. #show list: it => { test(it.children.len(), 3) } - A - B - C --- // Error: 6-13 dictionary does not contain key "invalid" #(:).invalid --- // Error: 8-10 cannot access fields on type boolean #false.ok --- // Error: 25-28 content does not contain field "fun" #show heading: it => it.fun = A --- // Error: 9-13 cannot access fields on type boolean #{false.true}