mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
To limit user confusion when using conditional expressions of type Bool?, we've decided to remove the BooleanType (aka "LogicValue") conformance from optional types. (If users would like to use an expression of type Bool? as a conditional, they'll need to check against nil.) Note: This change effectively regresses the "case is" pattern over types, since it currently demands a BooleanType conformance. I've filed rdar://problem/17791533 to track reinstating it if necessary. Swift SVN r20637
3.7 KiB
3.7 KiB