Skip to content

ExpressibleByLiteral

Compare
Choose a tag to compare
@0xLeif 0xLeif released this 29 Sep 15:01
· 17 commits to main since this release

Literals

extension Variable: ExpressibleByBooleanLiteral { ... }
extension Variable: ExpressibleByIntegerLiteral { ... }
extension Variable: ExpressibleByFloatLiteral { ... }
extension Variable: ExpressibleByStringLiteral { ... }
extension Variable: ExpressibleByArrayLiteral { ... }
extension Variable: ExpressibleByDictionaryLiteral { ... }

Example

let text: Variable = "Hello, World!"

XCTAssertEqual(text, "Hello, World!")