Open
Description
Is there an existing issue?
- I have searched existing issues
Build info
- ObjectBox version: [4.1.0]
- OS: IOS 17
- Device/chipset: iPhone 15
Steps to reproduce
- my class:
// objectbox: entity
class OneEntity :{
var id: Id = 0
var text: String?
init(){}
}
query code:
func query(id: Id) -> [OneEntity] {
do {
let query: Query<OneEntity>?
query = try entityDataBox?.query {OneEntity.id.isEqual(to: id) }
.build()
if let result = try query?.find(limit: 15) {
return result
}
return []
} catch {
print("query fail, err:\(error)")
return []
}
}
I encountered a compilation error at OneEntity.id.isEqual(to: id) here:
Ambiguous use of 'isEqual(to:)'
Expected behavior
I expect OneEntity.id.isEqual(to: id) should work
Actual behavior
Compilation error