You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem: passing a `Color` instance to the main constructor of `Color`
(i.e. `Color.new()` or `Color()`) silently causes a bug and
does not throw an error
Solution: immediately return the argument back to the caller when passed
a `Color` instance, thereby making the constructor idempotent
0 commit comments