Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
let randomOne = AppleFactory.makeMac()
let randomTwo = AppleFactory.makePhone()
//
// Error al compilar.
// Aunque la función devuelva que son Equatables en realidad
// devuelve un `Mac` y un `iPhone`
if randomOne == randomTwo
{
print("Los random son iguales")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.