mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Add FileReference object literals and _FileReferenceLiteralConvertible protocol.
<rdar://problem/21781451> Add file literal to Swift Swift SVN r31232
This commit is contained in:
@@ -208,6 +208,13 @@ public protocol _ColorLiteralConvertible {
|
||||
public protocol _ImageLiteralConvertible {
|
||||
init(imageLiteral: String)
|
||||
}
|
||||
|
||||
/// Conforming types can be initialized with strings (e.g.
|
||||
/// `[#FileReference(fileReferenceLiteral: "resource.txt")#]`).
|
||||
public protocol _FileReferenceLiteralConvertible {
|
||||
init(fileReferenceLiteral: String)
|
||||
}
|
||||
|
||||
#endif // SWIFT_ENABLE_OBJECT_LITERALS
|
||||
|
||||
/// A container is destructor safe if whether it may store to memory on
|
||||
|
||||
Reference in New Issue
Block a user