mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add syntax "[#Color(...)#]" for object literals, to be used by Playgrounds for inline color wells etc. The arguments are forwarded to the relevant constructor (although we will probably change this soon, since (colorLiteralRed:... blue:... green:... alpha) is kind of verbose). Add _ColorLiteralConvertible and _ImageLiteralConvertible protocols, and link them to the new expressions in the type checker. CSApply replaces the object literal expressions with a call to the appropriate protocol witness. Swift SVN r27479
58 KiB
58 KiB