We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ee4124 commit 2975237Copy full SHA for 2975237
CHANGELOG.md
@@ -26,6 +26,15 @@ Swift 5.1
26
27
* Key path expressions can now include references to tuple elements.
28
29
+* Single-parameter functions accepting values of type `Any` are no
30
+ longer preferred over other functions.
31
+
32
+```swift
33
+func foo(_: Any) { print("Any") }
34
+func foo<T>(_: T) { print("T") }
35
+foo(0) // prints "Any" in Swift < 5.1, "T" in Swift 5.1
36
+```
37
38
Swift 5.0
39
---------
40
0 commit comments