'Bool' is not convertible to 'BooleanLiteralConvertible'

2015-07-27 Thread Rick Mann
' is not convertible to 'BooleanLiteralConvertible' let d1 = [ kSecReturnData : true ] ^~~~ error: '_' is not convertible to 'CFString' let d2 = [ kSecReturnData : Bool(booleanLiteral: true) ] ^~~ Looking

Re: 'Bool' is not convertible to 'BooleanLiteralConvertible'

2015-07-27 Thread Quincey Morris
On Jul 27, 2015, at 14:57 , Rick Mann rm...@latencyzero.com wrote: error: 'Bool' is not convertible to 'BooleanLiteralConvertible' let d1 = [ kSecReturnData : true ] ^~~~ error: '_' is not convertible to 'CFString' let d2 = [ kSecReturnData : Bool

Re: 'Bool' is not convertible to 'BooleanLiteralConvertible'

2015-07-27 Thread Marco S Hyman
On Jul 27, 2015, at 3:06 PM, Quincey Morris quinceymor...@rivergatesoftware.com wrote: The problem is that kSecReturnData is a CFString, which is not a type that’s bridged automatically in the construction of a dictionary. The following works for me in a playground (b4): let d1 = [

Re: 'Bool' is not convertible to 'BooleanLiteralConvertible'

2015-07-27 Thread Rick Mann
On Jul 27, 2015, at 15:06 , Quincey Morris quinceymor...@rivergatesoftware.com wrote: CFString, which is not a type that’s bridged automatically in the construction of a dictionary Interesting. Is it bridged automatically anywhere else? Seems like a lot of ad-hoc and inconsistent

Re: 'Bool' is not convertible to 'BooleanLiteralConvertible'

2015-07-27 Thread Quincey Morris
On Jul 27, 2015, at 15:08 , Rick Mann rm...@latencyzero.com wrote: Is it bridged automatically anywhere else? Seems like a lot of ad-hoc and inconsistent support for bridging. I dunno, really. Support for CF things (and C things and unmanaged pointers) seems to vary release by release, so I