Turning it into an enum works. I still have no idea why assigning an AA literal to an immutable AA isn't acceptable, but since it's only used at compile time it's probably better to make it an enum.