File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ extension Attribute: ExpressibleByFloatLiteral where RawValue: ExpressibleByFloa
3939 }
4040}
4141
42- extension Optional : ExpressibleByFloatLiteral where Wrapped: ExpressibleByFloatLiteral {
42+ extension Optional : @ retroactive ExpressibleByFloatLiteral where Wrapped: ExpressibleByFloatLiteral {
4343 public typealias FloatLiteralType = Wrapped . FloatLiteralType
4444
4545 public init ( floatLiteral value: FloatLiteralType ) {
@@ -55,7 +55,7 @@ extension Attribute: ExpressibleByBooleanLiteral where RawValue: ExpressibleByBo
5555 }
5656}
5757
58- extension Optional : ExpressibleByBooleanLiteral where Wrapped: ExpressibleByBooleanLiteral {
58+ extension Optional : @ retroactive ExpressibleByBooleanLiteral where Wrapped: ExpressibleByBooleanLiteral {
5959 public typealias BooleanLiteralType = Wrapped . BooleanLiteralType
6060
6161 public init ( booleanLiteral value: BooleanLiteralType ) {
@@ -71,7 +71,7 @@ extension Attribute: ExpressibleByIntegerLiteral where RawValue: ExpressibleByIn
7171 }
7272}
7373
74- extension Optional : ExpressibleByIntegerLiteral where Wrapped: ExpressibleByIntegerLiteral {
74+ extension Optional : @ retroactive ExpressibleByIntegerLiteral where Wrapped: ExpressibleByIntegerLiteral {
7575 public typealias IntegerLiteralType = Wrapped . IntegerLiteralType
7676
7777 public init ( integerLiteral value: IntegerLiteralType ) {
Original file line number Diff line number Diff line change 55// Created by Mathew Polzin on 11/29/18.
66//
77
8- extension Optional : ExpressibleByUnicodeScalarLiteral where Wrapped: ExpressibleByUnicodeScalarLiteral {
8+ extension Optional : @ retroactive ExpressibleByUnicodeScalarLiteral where Wrapped: ExpressibleByUnicodeScalarLiteral {
99 public typealias UnicodeScalarLiteralType = Wrapped . UnicodeScalarLiteralType
1010
1111 public init ( unicodeScalarLiteral value: UnicodeScalarLiteralType ) {
1212 self = . some( Wrapped ( unicodeScalarLiteral: value) )
1313 }
1414}
1515
16- extension Optional : ExpressibleByExtendedGraphemeClusterLiteral where Wrapped: ExpressibleByExtendedGraphemeClusterLiteral {
16+ extension Optional : @ retroactive ExpressibleByExtendedGraphemeClusterLiteral where Wrapped: ExpressibleByExtendedGraphemeClusterLiteral {
1717 public typealias ExtendedGraphemeClusterLiteralType = Wrapped . ExtendedGraphemeClusterLiteralType
1818
1919 public init ( extendedGraphemeClusterLiteral value: ExtendedGraphemeClusterLiteralType ) {
2020 self = . some( Wrapped ( extendedGraphemeClusterLiteral: value) )
2121 }
2222}
2323
24- extension Optional : ExpressibleByStringLiteral where Wrapped: ExpressibleByStringLiteral {
24+ extension Optional : @ retroactive ExpressibleByStringLiteral where Wrapped: ExpressibleByStringLiteral {
2525 public typealias StringLiteralType = Wrapped . StringLiteralType
2626
2727 public init ( stringLiteral value: StringLiteralType ) {
You can’t perform that action at this time.
0 commit comments