Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Class converted to trait is unusable #3147
When you start writing a class and then convert it to a trait, the first use of that trait in a class definition will raise an error ("add: should not have been implemented in Array").
Example (execute the first two statements before attempting the third one):
Reason: The trait retains the class' instance variable 'user', which is an array, whereas for a trait it should be an IdentitySet.
Here is a test case for the bug (I had to add a .txt extension to please GitHub). I managed to make