Replies: 1 comment 1 reply
-
@wildthink This is sadly a limitation of Swift and would need to be addressed in the language. Swift's integer literal inference does not extend beyond To work around the issue you must explicitly tell Swift what type of integer you are dealing with: let q = User.where { $0.id == Int64(1) }
// or
let q = User.where { $0.id == 1 as Int64 } Since this isn't a bug we can address in the library I'm going to convert to a discussion. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Given:
Referencing operator function '==' on 'BinaryInteger' requires that 'TableColumn<User.TableColumns.QueryValue, Int64>' (aka 'TableColumn<User, Int64>') conform to 'BinaryInteger'
Checklist
main
branch of this package.Expected behavior
No response
Actual behavior
No response
Reproducing project
No response
Structured Queries version information
No response
Destination operating system
No response
Xcode version information
No response
Swift Compiler version information
Beta Was this translation helpful? Give feedback.
All reactions