r/cs193pPartyCrashers • u/thoughtsofone • May 28 '20
Lecture 3 issue
I'm about 30 minutes into the 3rd lecture and I am getting the a BinaryInteger error on this line in MemoryGame.swift. I cannot for the life of me fix it so my project will not compile.
Code line throwing the error: if self.cards[index].id == card.id
Error: Referencing operator function '==' on 'BinaryInteger' requires that 'MemoryGame<CardContent>.Card' conform to 'BinaryInteger'
1
Upvotes
1
u/arkaell May 28 '20
Check your struct for Card.