-
-
Save fitomad/791bb8adb2887457184ddc2e82921ce1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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