Skip to content

Commit

Permalink
BeLogical: fix retroactive conformance error. (#1149)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomerHacohen committed Jun 25, 2024
1 parent eb1013d commit 6ba9e68
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Sources/Nimble/Matchers/BeLogical.swift
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
import Foundation

extension Int8: ExpressibleByBooleanLiteral {
extension Int8: Swift.ExpressibleByBooleanLiteral {
public init(booleanLiteral value: Bool) {
self = NSNumber(value: value).int8Value
}
}

extension UInt8: ExpressibleByBooleanLiteral {
extension UInt8: Swift.ExpressibleByBooleanLiteral {
public init(booleanLiteral value: Bool) {
self = NSNumber(value: value).uint8Value
}
}

extension Int16: ExpressibleByBooleanLiteral {
extension Int16: Swift.ExpressibleByBooleanLiteral {
public init(booleanLiteral value: Bool) {
self = NSNumber(value: value).int16Value
}
}

extension UInt16: ExpressibleByBooleanLiteral {
extension UInt16: Swift.ExpressibleByBooleanLiteral {
public init(booleanLiteral value: Bool) {
self = NSNumber(value: value).uint16Value
}
}

extension Int32: ExpressibleByBooleanLiteral {
extension Int32: Swift.ExpressibleByBooleanLiteral {
public init(booleanLiteral value: Bool) {
self = NSNumber(value: value).int32Value
}
}

extension UInt32: ExpressibleByBooleanLiteral {
extension UInt32: Swift.ExpressibleByBooleanLiteral {
public init(booleanLiteral value: Bool) {
self = NSNumber(value: value).uint32Value
}
}

extension Int64: ExpressibleByBooleanLiteral {
extension Int64: Swift.ExpressibleByBooleanLiteral {
public init(booleanLiteral value: Bool) {
self = NSNumber(value: value).int64Value
}
Expand Down

0 comments on commit 6ba9e68

Please sign in to comment.