Avatar
Avatar
omochimetaru
@swift-5.9.2 var a = [1] a.popFirst()
exit status: 1 with <stdin>:2:3: error: referencing instance method 'popFirst()' on 'Collection' requires the types '[Int]' and 'ArraySlice<Int>' be equivalent a.popFirst() ^ Swift.Collection:1:11: note: where 'Self' = '[Int]', 'Self.SubSequence' = 'ArraySlice<Int>' extension Collection where Self == Self.SubSequence { ^