Skip to content

Binary operator '==' cannot be applied to operands of type 'Expression<Int64>' and 'Int' #680

@lita-jerry

Description

@lita-jerry

Hello:
I have a question, It really puzzles me:
let a = 1
let deleteRow1 = templates.filter(id == a) //Binary operator '==' cannot be applied to operands of type 'Expression<Int64>' and 'Int'
let deleteRow2 = templates.filter(id == 1) //No error

I want to pass the argument “id” into the function
Why, Am I doing anything wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions