Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BeLogical: fix retroactive conformance error. #1149

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading