mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Since the API is not quite the same, needed to introduce several overloads that accept Set<> and not any S : Sequence. Some dynamic casts were removed from methods, since Set.init already handles situations where sequence being passed is in fact a Set. Verified there is no significant change in performance after vs before the change.
7 lines
134 B
Swift
7 lines
134 B
Swift
// RUN: %target-run-simple-swift
|
|
// REQUIRES: executable_test
|
|
|
|
func setAlgebraOps<S : SetAlgebra>(s: S) {}
|
|
|
|
setAlgebraOps(Set<Int>())
|