mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Eliminate the implicit conversion from NSNumber to one of its bridged value types (Int, Float, Double, Bool, etc.). One can use "as" to perform the conversion instead. This eliminates a class of accepts-dubious that involve lossy conversions from NSNumber to Int. Our eventual arc is to eliminate all of these conversions. This is a small, high-value step along that path rdar://problem/18269449. Swift SVN r21879
144 KiB
144 KiB