Avatar
Avatar
Yuta Saito
@swift-6.1.3 @swift-6.2.1 protocol P { var foo: Int { get } } func f(_ v: [any P]) { v.map(\.foo) } (edited)
<stdin>:3:5: warning: result of call to 'map' is unused 1 | protocol P { var foo: Int { get } } 2 | func f(_ v: [any P]) { 3 | v.map(\.foo) | `- warning: result of call to 'map' is unused 4 | } 5 | (edited)