How does this even compile? hash-code isn't declared anywhere